diff --git a/res/layout/fragment_main.xml b/res/layout/fragment_main.xml index 8cf86486b7ad2ae43cdf1b28acb90f308f505795..f1ebe11ac22a794e14c3d18ef92c62cd006acd5e 100644 --- a/res/layout/fragment_main.xml +++ b/res/layout/fragment_main.xml @@ -65,13 +65,6 @@ android:text="@string/label_tools" android:textAppearance="?android:attr/textAppearanceMedium" /> -<Button - android:id="@+id/addressbook_button" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:text="@string/label_addressbook" - android:drawableLeft="@drawable/addressbook_icon" /> - <Button android:id="@+id/logs_button" android:layout_width="match_parent" diff --git a/res/values/arrays.xml b/res/values/arrays.xml index f747f55dfd18c2452add3908610afd4a4c1d2b81..dd9e270934beb1104dea7de89f8ff41039756cea 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -2,9 +2,11 @@ <resources> <string-array name="main_fragments"> <item>net.i2p.android.router.fragment.MainFragment</item> + <item>net.i2p.android.router.fragment.AddressbookFragment</item> </string-array> <string-array name="main_fragment_titles"> <item>@string/label_home</item> + <item>@string/label_addressbook</item> </string-array> <string-array name="setting0to3"> <item>0</item> diff --git a/src/net/i2p/android/router/fragment/MainFragment.java b/src/net/i2p/android/router/fragment/MainFragment.java index 1c0d6418d898a1aacb7efd7ccb3d475da6bfac8c..54d45c1f25e9bed8de8243ea06605edf5d2375f1 100644 --- a/src/net/i2p/android/router/fragment/MainFragment.java +++ b/src/net/i2p/android/router/fragment/MainFragment.java @@ -152,18 +152,6 @@ public class MainFragment extends I2PFragmentBase { } }); - b = (Button) v.findViewById(R.id.addressbook_button); - b.setOnClickListener(new View.OnClickListener() { - - public void onClick(View view) { - getActivity().getSupportFragmentManager() - .beginTransaction() - .replace(R.id.main_content, new AddressbookFragment()) - .addToBackStack(null) - .commit(); - } - }); - b = (Button) v.findViewById(R.id.logs_button); b.setOnClickListener(new View.OnClickListener() {