I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 5c9c438e authored by str4d's avatar str4d
Browse files

Moved Addressbook button to navigation drawer

parent 27239cf0
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
......@@ -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>
......
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment