From b53b1bca1b7082e2dad5807739493c8685bb0b2f Mon Sep 17 00:00:00 2001 From: KenMizz Date: Mon, 4 Jul 2022 13:04:02 +0800 Subject: [PATCH] fix old version not compatible with the new one --- app/src/main/AndroidManifest.xml | 2 +- .../onesentence/ApplicationBootReceiver.java | 2 +- .../java/kenmizz/onesentence/MainActivity.java | 2 +- .../SentenceAppWidgetProvider.java | 2 +- .../main/res/drawable-xxxhdpi/app_icon_round.png | Bin 8520 -> 0 bytes 5 files changed, 4 insertions(+), 4 deletions(-) rename app/src/main/java/kenmizz/onesentence/{provider => }/SentenceAppWidgetProvider.java (98%) delete mode 100644 app/src/main/res/drawable-xxxhdpi/app_icon_round.png diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 0a40e22..7129182 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -40,7 +40,7 @@ - diff --git a/app/src/main/java/kenmizz/onesentence/ApplicationBootReceiver.java b/app/src/main/java/kenmizz/onesentence/ApplicationBootReceiver.java index eaca98c..22a2534 100644 --- a/app/src/main/java/kenmizz/onesentence/ApplicationBootReceiver.java +++ b/app/src/main/java/kenmizz/onesentence/ApplicationBootReceiver.java @@ -48,7 +48,7 @@ public void onReceive(Context context, Intent intent) { .setContentTitle(sentence) .setPriority(NotificationCompat.PRIORITY_DEFAULT) .setOngoing(true) - .addAction(R.drawable.app_icon_round, context.getString(R.string.remove), pendingIntent); + .addAction(R.drawable.app_notification_icon_small, context.getString(R.string.remove), pendingIntent); notificationManager.notify(NotificationId, notificationBuilder.build()); } } diff --git a/app/src/main/java/kenmizz/onesentence/MainActivity.java b/app/src/main/java/kenmizz/onesentence/MainActivity.java index deccce3..5ae7db8 100644 --- a/app/src/main/java/kenmizz/onesentence/MainActivity.java +++ b/app/src/main/java/kenmizz/onesentence/MainActivity.java @@ -387,7 +387,7 @@ public void createLongTimeNotification(String sentence) { .setPriority(NotificationCompat.PRIORITY_DEFAULT) .setShowWhen(false) .setOngoing(true) - .addAction(R.drawable.app_icon_round, getString(R.string.remove), pendingIntent); + .addAction(R.drawable.app_notification_icon_small, getString(R.string.remove), pendingIntent); notificationManager.notify(NotificationId, notificationBuilder.build()); SharedPreferences NotificationPrefs = getSharedPreferences(Constants.NOTIFICATION_PREFS, MODE_PRIVATE); SharedPreferences.Editor notificationPrefsEditor = NotificationPrefs.edit(); diff --git a/app/src/main/java/kenmizz/onesentence/provider/SentenceAppWidgetProvider.java b/app/src/main/java/kenmizz/onesentence/SentenceAppWidgetProvider.java similarity index 98% rename from app/src/main/java/kenmizz/onesentence/provider/SentenceAppWidgetProvider.java rename to app/src/main/java/kenmizz/onesentence/SentenceAppWidgetProvider.java index 017a10f..b725ab3 100644 --- a/app/src/main/java/kenmizz/onesentence/provider/SentenceAppWidgetProvider.java +++ b/app/src/main/java/kenmizz/onesentence/SentenceAppWidgetProvider.java @@ -1,4 +1,4 @@ -package kenmizz.onesentence.provider; +package kenmizz.onesentence; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; diff --git a/app/src/main/res/drawable-xxxhdpi/app_icon_round.png b/app/src/main/res/drawable-xxxhdpi/app_icon_round.png deleted file mode 100644 index da724bca995da8c9d3d74fbd0725b3770ddaf1be..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8520 zcmV-OA-CR%P)G000004XF*Lt006O% z3;baP0000WV@Og>004R>004l5008;`004mK004C`008P>0026e000+ooVrmw00002 zVoOIv0RM-N%)bBtAY(~HK~#9!?Ol1C6xE&ozE{=V(=)?81H&PR+$uUsGzJVR#>C?j z<7(6-N>CErm_%F?vl>mZn`~lS-9#l>H8CDpM1i0LG^hzdFn|UKAcueoqX6t$2?H^sotEyL5cUAXry#CA#)pXbK{oTL!d%p*q7$?Swablbp$Lk=+?47a`1PK4` zNP+OP69g#qo`~r$alLQm@wZ!&f^=ixi3xaOA_8&bd(n^icef$~>1KC9OmGwJ@A4tT zPf4C!F<2f*`_mfqk;mCjlHH0!$^oS*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