Browse Source

Rename notification channel codes

Rename is to force re-create them, working around a migration bug in Android; see https://stackoverflow.com/questions/57717831/caused-by-java-lang-securityexception-uid-10243-does-not-have-permission-to-con#comment118974535_57717831
pull/621/head
Eric Kok 3 years ago
parent
commit
c63ccf075c
  1. 6
      app/src/main/java/org/transdroid/core/service/NotificationChannels.java

6
app/src/main/java/org/transdroid/core/service/NotificationChannels.java

@ -11,9 +11,9 @@ import org.transdroid.core.app.settings.NotificationSettings;
class NotificationChannels { class NotificationChannels {
public static final String CHANNEL_APP_UPDATE = "channel_app_update"; public static final String CHANNEL_APP_UPDATE = "channel_app_update2";
public static final String CHANNEL_RSS_CHECKER = "channel_rss_checker"; public static final String CHANNEL_RSS_CHECKER = "channel_rss_checker2";
public static final String CHANNEL_SERVER_CHECKER = "channel_server_checker"; public static final String CHANNEL_SERVER_CHECKER = "channel_server_checker2";
static void ensureAppUpdateChannel(final Context context, NotificationSettings notificationSettings) { static void ensureAppUpdateChannel(final Context context, NotificationSettings notificationSettings) {
createChannel(context, CHANNEL_APP_UPDATE, R.string.pref_checkupdates, R.string.pref_checkupdates_info, notificationSettings); createChannel(context, CHANNEL_APP_UPDATE, R.string.pref_checkupdates, R.string.pref_checkupdates_info, notificationSettings);

Loading…
Cancel
Save