From 14bbe1ffefabb0413a91d05de76cdeb2dfbdf0a1 Mon Sep 17 00:00:00 2001 From: Grishka Date: Mon, 12 Jun 2023 18:50:06 +0300 Subject: [PATCH] Update the update icon --- .../android/fragments/HomeTimelineFragment.java | 7 +------ .../main/res/drawable/ic_settings_24_badged.xml | 10 ---------- .../res/drawable/ic_settings_updateready_24px.xml | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 16 deletions(-) delete mode 100644 mastodon/src/main/res/drawable/ic_settings_24_badged.xml create mode 100644 mastodon/src/main/res/drawable/ic_settings_updateready_24px.xml diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeTimelineFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeTimelineFragment.java index 4297376bf..1c7b64048 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeTimelineFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeTimelineFragment.java @@ -431,12 +431,7 @@ public class HomeTimelineFragment extends StatusListFragment{ private void updateUpdateState(GithubSelfUpdater.UpdateState state){ if(state!=GithubSelfUpdater.UpdateState.NO_UPDATE && state!=GithubSelfUpdater.UpdateState.CHECKING) - getToolbar().getMenu().findItem(R.id.settings).setIcon(R.drawable.ic_settings_24_badged); - } - - @Override - protected boolean wantsToolbarMenuIconsTinted(){ - return false; + getToolbar().getMenu().findItem(R.id.settings).setIcon(R.drawable.ic_settings_updateready_24px); } @Subscribe diff --git a/mastodon/src/main/res/drawable/ic_settings_24_badged.xml b/mastodon/src/main/res/drawable/ic_settings_24_badged.xml deleted file mode 100644 index 9c1148ae4..000000000 --- a/mastodon/src/main/res/drawable/ic_settings_24_badged.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/mastodon/src/main/res/drawable/ic_settings_updateready_24px.xml b/mastodon/src/main/res/drawable/ic_settings_updateready_24px.xml new file mode 100644 index 000000000..0b39cd71f --- /dev/null +++ b/mastodon/src/main/res/drawable/ic_settings_updateready_24px.xml @@ -0,0 +1,15 @@ + + + + +