FORT-178943:Some notifications are missing the expected icon

#rb:Chris.Babcock
#jira:FORT-178943
#android
#kairos


#ROBOMERGE-SOURCE: CL 6664591 via CL 6664592 via CL 6664594 via CL 6664596 via CL 6664598 via CL 6667332
#ROBOMERGE-BOT: (vundefined-6665479)

[CL 6667473 by pete procopio in Main branch]
This commit is contained in:
pete procopio
2019-05-29 16:38:44 -04:00
parent 7cb7c94992
commit 95999a518b
@@ -91,7 +91,11 @@ public class LocalNotificationReceiver extends BroadcastReceiver
public static int getNotificationIconID(Context context)
{
int notificationIconID = context.getResources().getIdentifier("ic_notification", "drawable", context.getPackageName());
int notificationIconID = context.getResources().getIdentifier("ic_notification_simple", "drawable", context.getPackageName());
if (notificationIconID == 0)
{
notificationIconID = context.getResources().getIdentifier("ic_notification", "drawable", context.getPackageName());
}
if (notificationIconID == 0)
{
notificationIconID = context.getResources().getIdentifier("icon", "drawable", context.getPackageName());