remove unneeded bottom bar icons

This commit is contained in:
Phillip Thelen 2017-09-26 17:47:51 +02:00
parent 2949e63eb9
commit abca017f05
24 changed files with 8 additions and 53 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 674 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 715 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 890 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 412 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 478 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1,007 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 814 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 793 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 994 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

View file

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/icon_dailies_selected" android:state_selected="true" />
<item android:drawable="@drawable/icon_dailies_unselected" android:state_selected="false" />
</selector>

View file

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/icon_habits_selected" android:state_selected="true" />
<item android:drawable="@drawable/icon_habits_unselected" android:state_selected="false" />
</selector>

View file

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/icon_rewards_selected" android:state_selected="true" />
<item android:drawable="@drawable/icon_rewards_unselected" android:state_selected="false" />
</selector>

View file

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/icon_todos_selected" android:state_selected="true" />
<item android:drawable="@drawable/icon_todos_unselected" android:state_selected="false" />
</selector>

View file

@ -1,28 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/action_habits"
android:enabled="true"
android:icon="@drawable/icon_habits"
android:title="@string/habits"
app:showAsAction="always" />
<item
android:id="@+id/action_dailies"
android:enabled="true"
android:icon="@drawable/icon_dailies"
android:title="@string/dailies"
app:showAsAction="always" />
<item
android:id="@+id/action_todos"
android:enabled="true"
android:icon="@drawable/icon_todos"
android:title="@string/todos"
app:showAsAction="always" />
<item
android:id="@+id/action_rewards"
android:enabled="true"
android:icon="@drawable/icon_rewards"
android:title="@string/rewards"
app:showAsAction="always"/>
</menu>

View file

@ -2,18 +2,18 @@
<tabs>
<tab
id="@+id/tab_habits"
icon="@drawable/icon_habits"
icon="@drawable/icon_habits_selected"
title="@string/habits" />
<tab
id="@+id/tab_dailies"
icon="@drawable/icon_dailies"
icon="@drawable/icon_dailies_selected"
title="@string/dailies" />
<tab
id="@+id/tab_todos"
icon="@drawable/icon_todos"
icon="@drawable/icon_todos_selected"
title="@string/todos" />
<tab
id="@+id/tab_rewards"
icon="@drawable/icon_rewards"
icon="@drawable/icon_rewards_selected"
title="@string/rewards" />
</tabs>

View file

@ -68,7 +68,9 @@ public class PreferencesFragment extends BasePreferencesFragment implements
@Override
public void onDestroy() {
userRepository.close();
subscription.unsubscribe();
if (subscription != null) {
subscription.unsubscribe();
}
super.onDestroy();
}

View file

@ -335,6 +335,7 @@ public class TasksFragment extends BaseMainFragment {
}
}
}, RxErrorHandler.handleEmptyError());
BottomBarTab tab = bottomNavigation.getTabWithId(R.id.tab_dailies);
}
// endregion