remove unneeded bottom bar icons
|
Before Width: | Height: | Size: 674 B |
|
Before Width: | Height: | Size: 715 B |
|
Before Width: | Height: | Size: 890 B |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 412 B |
|
Before Width: | Height: | Size: 381 B |
|
Before Width: | Height: | Size: 478 B |
|
Before Width: | Height: | Size: 1,007 B |
|
Before Width: | Height: | Size: 814 B |
|
Before Width: | Height: | Size: 793 B |
|
Before Width: | Height: | Size: 994 B |
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 3.4 KiB |
|
|
@ -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>
|
||||
|
|
@ -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>
|
||||
|
|
@ -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>
|
||||
|
|
@ -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>
|
||||
|
|
@ -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>
|
||||
|
|
@ -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>
|
||||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -335,6 +335,7 @@ public class TasksFragment extends BaseMainFragment {
|
|||
}
|
||||
}
|
||||
}, RxErrorHandler.handleEmptyError());
|
||||
BottomBarTab tab = bottomNavigation.getTabWithId(R.id.tab_dailies);
|
||||
}
|
||||
// endregion
|
||||
|
||||
|
|
|
|||