Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
fix old version not compatible with the new one
Browse files Browse the repository at this point in the history
  • Loading branch information
KenMizz committed Jul 4, 2022
1 parent 423571c commit b53b1bc
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</intent-filter>
</activity>

<receiver android:name=".provider.SentenceAppWidgetProvider"
<receiver android:name=".SentenceAppWidgetProvider"
android:exported="true" android:label="@string/sentence">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/kenmizz/onesentence/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kenmizz.onesentence.provider;
package kenmizz.onesentence;

import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
Expand Down
Binary file removed app/src/main/res/drawable-xxxhdpi/app_icon_round.png
Binary file not shown.

0 comments on commit b53b1bc

Please sign in to comment.