mirror of
https://github.com/readrops/Readrops.git
synced 2025-01-23 07:21:52 +01:00
Add notification to synchro channel
This commit is contained in:
parent
287a20baa9
commit
7c996d1af7
@ -1,5 +1,6 @@
|
||||
package com.readrops.app;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.Application;
|
||||
import android.app.NotificationChannel;
|
||||
import android.app.NotificationManager;
|
||||
@ -12,6 +13,7 @@ import com.readrops.app.utils.SharedPreferencesManager;
|
||||
|
||||
import io.reactivex.plugins.RxJavaPlugins;
|
||||
|
||||
@SuppressLint("Registered")
|
||||
public class ReadropsApp extends Application {
|
||||
|
||||
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,
|
||||
getString(R.string.auto_synchro), NotificationManager.IMPORTANCE_DEFAULT);
|
||||
syncChannel.setDescription(getString(R.string.account_synchro));
|
||||
|
||||
NotificationManager manager = getSystemService(NotificationManager.class);
|
||||
|
||||
|
@ -121,5 +121,6 @@
|
||||
<string name="hour_6">6 heures</string>
|
||||
<string name="hour_12">12 heures</string>
|
||||
<string name="every_day">Chaque jour</string>
|
||||
<string name="account_synchro">Synchronisation des comptes</string>
|
||||
|
||||
</resources>
|
@ -127,4 +127,5 @@
|
||||
<string name="hour_6">6 hours</string>
|
||||
<string name="hour_12">12 hours</string>
|
||||
<string name="every_day">Every day</string>
|
||||
<string name="account_synchro">Accounts synchronisation</string>
|
||||
</resources>
|
||||
|
Loading…
Reference in New Issue
Block a user