Commit c3e95e45 authored by Bastien Le Querrec's avatar Bastien Le Querrec

display new SIM card notification on OTHER channel

parent ed5caca4
Pipeline #164 passed with stages
in 44 minutes and 45 seconds
......@@ -15,6 +15,7 @@ import org.smssecure.smssecure.crypto.IdentityKeyUtil;
import org.smssecure.smssecure.crypto.MasterSecret;
import org.smssecure.smssecure.crypto.MasterSecretUtil;
import org.smssecure.smssecure.crypto.storage.SilenceSessionStore;
import org.smssecure.smssecure.notifications.NotificationChannels;
import org.smssecure.smssecure.R;
import org.smssecure.smssecure.util.ServiceUtil;
import org.smssecure.smssecure.util.SilencePreferences;
......@@ -114,7 +115,7 @@ public class DualSimUtil {
public static void displayNotification(Context context) {
Intent targetIntent = context.getPackageManager().getLaunchIntentForPackage(context.getPackageName());
Notification notification = new NotificationCompat.Builder(context)
Notification notification = new NotificationCompat.Builder(context, NotificationChannels.OTHER)
.setSmallIcon(R.drawable.icon_notification)
.setColor(context.getResources().getColor(R.color.silence_primary))
.setContentTitle(context.getString(R.string.DualSimUtil__new_sim_card_detected))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment