Commit 83cc51d9 authored by Geoffrey Métais's avatar Geoffrey Métais

Hide Network & History in release mode

parent 553b38cb
......@@ -22,7 +22,8 @@
<item
android:id="@+id/nav_network"
android:title="@string/network_browsing"
android:icon="@drawable/ic_menu_network" />
android:icon="@drawable/ic_menu_network"
android:visible="false" />
<item
android:id="@+id/nav_mrl"
......@@ -32,7 +33,8 @@
<item
android:id="@+id/nav_history"
android:title="@string/history"
android:icon="@drawable/ic_menu_history" />
android:icon="@drawable/ic_menu_history"
android:visible="false" />
</group>
<group android:id="@+id/fixed_group"
android:checkableBehavior="single">
......
......@@ -217,6 +217,11 @@ public class MainActivity extends AudioPlayerContainerActivity implements Search
item.setTitle(R.string.open);
}
if (BuildConfig.DEBUG) {
mNavigationView.getMenu().findItem(R.id.nav_history).setVisible(true);
mNavigationView.getMenu().findItem(R.id.nav_network).setVisible(true);
}
if (AndroidUtil.isLolliPopOrLater())
mNavigationView.setPadding(0, mNavigationView.getPaddingTop()/2, 0, 0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment