Removed "I2P Home" from action bar (linked in navigation drawer)
This commit is contained in:
@ -15,10 +15,6 @@
|
||||
android:id="@+id/menu_reload"
|
||||
android:icon="@drawable/ic_menu_refresh" >
|
||||
</item>
|
||||
<item android:title="@string/label_home"
|
||||
android:id="@+id/menu_home"
|
||||
android:icon="@drawable/ic_menu_home" >
|
||||
</item>
|
||||
<item android:title="@string/menu_settings"
|
||||
android:id="@+id/menu_settings"
|
||||
android:icon="@android:drawable/ic_menu_preferences" >
|
||||
|
@ -144,11 +144,6 @@ public abstract class I2PFragmentBase extends Fragment {
|
||||
stop.setVisible(showStop);
|
||||
stop.setEnabled(showStop);
|
||||
|
||||
boolean showHome = ! (this instanceof MainFragment);
|
||||
MenuItem home = menu.findItem(R.id.menu_home);
|
||||
home.setVisible(showHome);
|
||||
home.setEnabled(showHome);
|
||||
|
||||
boolean showAddressbook = (this instanceof WebFragment);
|
||||
MenuItem addressbook = menu.findItem(R.id.menu_addressbook);
|
||||
addressbook.setVisible(showAddressbook);
|
||||
@ -168,11 +163,6 @@ public abstract class I2PFragmentBase extends Fragment {
|
||||
startActivity(intent);
|
||||
return true;
|
||||
|
||||
case R.id.menu_home:
|
||||
Intent i2 = new Intent(getActivity(), MainActivity.class);
|
||||
startActivity(i2);
|
||||
return true;
|
||||
|
||||
case R.id.menu_addressbook:
|
||||
Intent i3 = new Intent(getActivity(), AddressbookActivity.class);
|
||||
startActivity(i3);
|
||||
|
Reference in New Issue
Block a user