From 18633291e62870a7b69ba149bf5deb80977f0e9f Mon Sep 17 00:00:00 2001 From: Grishka Date: Thu, 29 Sep 2022 01:23:00 +0300 Subject: [PATCH] Add monochrome icon --- mastodon/build.gradle | 4 ++-- .../android/api/MastodonAPIController.java | 2 +- .../main/res/drawable-v24/ic_launcher_monochrome.xml | 10 ++++++++++ .../src/main/res/mipmap-anydpi-v26/ic_launcher.xml | 5 +++++ .../main/res/mipmap-anydpi-v26/ic_launcher_round.xml | 5 +++++ 5 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 mastodon/src/main/res/drawable-v24/ic_launcher_monochrome.xml diff --git a/mastodon/build.gradle b/mastodon/build.gradle index 0691e1d5..fb5c64f4 100644 --- a/mastodon/build.gradle +++ b/mastodon/build.gradle @@ -4,11 +4,11 @@ plugins { } android { - compileSdk 31 + compileSdk 33 defaultConfig { applicationId "org.joinmastodon.android" minSdk 23 - targetSdk 31 + targetSdk 33 versionCode 40 versionName "1.1.3" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" diff --git a/mastodon/src/main/java/org/joinmastodon/android/api/MastodonAPIController.java b/mastodon/src/main/java/org/joinmastodon/android/api/MastodonAPIController.java index 1f30e737..e0132580 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/api/MastodonAPIController.java +++ b/mastodon/src/main/java/org/joinmastodon/android/api/MastodonAPIController.java @@ -96,7 +96,7 @@ public class MastodonAPIController{ if(call.isCanceled()) return; if(BuildConfig.DEBUG) - Log.w(TAG, "["+(session==null ? "no-auth" : session.getID())+"] "+hreq+" failed: "+e); + Log.w(TAG, "["+(session==null ? "no-auth" : session.getID())+"] "+hreq+" failed", e); synchronized(req){ req.okhttpCall=null; } diff --git a/mastodon/src/main/res/drawable-v24/ic_launcher_monochrome.xml b/mastodon/src/main/res/drawable-v24/ic_launcher_monochrome.xml new file mode 100644 index 00000000..d7952958 --- /dev/null +++ b/mastodon/src/main/res/drawable-v24/ic_launcher_monochrome.xml @@ -0,0 +1,10 @@ + + + diff --git a/mastodon/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/mastodon/src/main/res/mipmap-anydpi-v26/ic_launcher.xml index 4ae7d123..31cfbe12 100644 --- a/mastodon/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +++ b/mastodon/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -2,4 +2,9 @@ + + + + + \ No newline at end of file diff --git a/mastodon/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/mastodon/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml index 4ae7d123..31cfbe12 100644 --- a/mastodon/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +++ b/mastodon/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -2,4 +2,9 @@ + + + + + \ No newline at end of file