1
0
Fork 0

No issue: Fix NotificationManager icon color

master
Jonathan Almeida 2019-05-23 18:31:49 -04:00 committed by Sawyer Blatz
parent 36f4b97712
commit 2fd91daa5b
6 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,7 @@ import mozilla.components.feature.sync.GlobalSyncableStoreProvider
import mozilla.components.service.fxa.Config import mozilla.components.service.fxa.Config
import mozilla.components.service.fxa.manager.DeviceTuple import mozilla.components.service.fxa.manager.DeviceTuple
import mozilla.components.service.fxa.manager.FxaAccountManager import mozilla.components.service.fxa.manager.FxaAccountManager
import org.mozilla.fenix.R
import org.mozilla.fenix.test.Mockable import org.mozilla.fenix.test.Mockable
/** /**
@ -68,7 +69,7 @@ class BackgroundServices(
context, context,
config, config,
scopes, scopes,
DeviceTuple("Fenix", DeviceType.MOBILE, listOf(DeviceCapability.SEND_TAB)), DeviceTuple(context.getString(R.string.app_name), DeviceType.MOBILE, listOf(DeviceCapability.SEND_TAB)),
syncManager syncManager
).also { ).also {
it.registerForDeviceEvents(deviceEventObserver, ProcessLifecycleOwner.get(), true) it.registerForDeviceEvents(deviceEventObserver, ProcessLifecycleOwner.get(), true)

View File

@ -50,7 +50,7 @@ class NotificationManager(private val context: Context) {
val pendingIntent: PendingIntent = PendingIntent.getActivity(context, 0, intent, 0) val pendingIntent: PendingIntent = PendingIntent.getActivity(context, 0, intent, 0)
val builder = NotificationCompat.Builder(context, RECEIVE_TABS_CHANNEL_ID) val builder = NotificationCompat.Builder(context, RECEIVE_TABS_CHANNEL_ID)
.setSmallIcon(R.drawable.ic_notification) .setSmallIcon(R.drawable.ic_status_logo)
.setContentTitle(tab.title) .setContentTitle(tab.title)
.setContentText(tab.url) .setContentText(tab.url)
.setContentIntent(pendingIntent) .setContentIntent(pendingIntent)

Binary file not shown.

After

Width:  |  Height:  |  Size: 717 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 919 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB