Add notification to synchro channel

This commit is contained in:
Shinokuni 2020-02-05 14:55:02 +01:00
parent 287a20baa9
commit 7c996d1af7
3 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,6 @@
package com.readrops.app; package com.readrops.app;
import android.annotation.SuppressLint;
import android.app.Application; import android.app.Application;
import android.app.NotificationChannel; import android.app.NotificationChannel;
import android.app.NotificationManager; import android.app.NotificationManager;
@ -12,6 +13,7 @@ import com.readrops.app.utils.SharedPreferencesManager;
import io.reactivex.plugins.RxJavaPlugins; import io.reactivex.plugins.RxJavaPlugins;
@SuppressLint("Registered")
public class ReadropsApp extends Application { public class ReadropsApp extends Application {
public static final String FEEDS_COLORS_CHANNEL_ID = "feedsColorsChannel"; public static final String FEEDS_COLORS_CHANNEL_ID = "feedsColorsChannel";
@ -47,6 +49,7 @@ public class ReadropsApp extends Application {
NotificationChannel syncChannel = new NotificationChannel(SYNC_CHANNEL_ID, NotificationChannel syncChannel = new NotificationChannel(SYNC_CHANNEL_ID,
getString(R.string.auto_synchro), NotificationManager.IMPORTANCE_DEFAULT); getString(R.string.auto_synchro), NotificationManager.IMPORTANCE_DEFAULT);
syncChannel.setDescription(getString(R.string.account_synchro));
NotificationManager manager = getSystemService(NotificationManager.class); NotificationManager manager = getSystemService(NotificationManager.class);

View File

@ -121,5 +121,6 @@
<string name="hour_6">6 heures</string> <string name="hour_6">6 heures</string>
<string name="hour_12">12 heures</string> <string name="hour_12">12 heures</string>
<string name="every_day">Chaque jour</string> <string name="every_day">Chaque jour</string>
<string name="account_synchro">Synchronisation des comptes</string>
</resources> </resources>

View File

@ -127,4 +127,5 @@
<string name="hour_6">6 hours</string> <string name="hour_6">6 hours</string>
<string name="hour_12">12 hours</string> <string name="hour_12">12 hours</string>
<string name="every_day">Every day</string> <string name="every_day">Every day</string>
<string name="account_synchro">Accounts synchronisation</string>
</resources> </resources>