display alarm notification
This commit is contained in:
parent
1299ff2d2e
commit
5c075ee168
@ -1688,13 +1688,7 @@ public class TabLayoutActivity extends AbstractSDParentActivity {
|
|||||||
SM.Debug("Unit imei:" + tempArr[0]);
|
SM.Debug("Unit imei:" + tempArr[0]);
|
||||||
String unitIMEI = tempArr[0];
|
String unitIMEI = tempArr[0];
|
||||||
|
|
||||||
//list for SMS
|
|
||||||
if (AppParams.crtTab == AppParams.Tabs.alarms) {
|
|
||||||
SM.Debug("currentActivity instanceof AlarmActivity - newSMS | " + tempArr[0] + " | " + tempArr[1]);
|
|
||||||
getAlarms(AppParams.USERID);
|
|
||||||
}
|
|
||||||
// if tab is not TextTab
|
|
||||||
if (tabHost.getCurrentTab() != 5) {
|
|
||||||
// change Visual Elements
|
// change Visual Elements
|
||||||
setImei(unitIMEI);
|
setImei(unitIMEI);
|
||||||
switch (msg.opCode) {
|
switch (msg.opCode) {
|
||||||
@ -1745,6 +1739,11 @@ public class TabLayoutActivity extends AbstractSDParentActivity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//list for SMS
|
||||||
|
if (AppParams.crtTab == AppParams.Tabs.alarms) {
|
||||||
|
SM.Debug("currentActivity instanceof AlarmActivity - newSMS | " + tempArr[0] + " | " + tempArr[1]);
|
||||||
|
getAlarms(AppParams.USERID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2052,7 +2051,6 @@ public class TabLayoutActivity extends AbstractSDParentActivity {
|
|||||||
.setAutoCancel(true)
|
.setAutoCancel(true)
|
||||||
.setContentIntent(pendingIntent);
|
.setContentIntent(pendingIntent);
|
||||||
|
|
||||||
Log.v("test111", "test");
|
|
||||||
NotificationManagerCompat managerCompat = NotificationManagerCompat.from(context);
|
NotificationManagerCompat managerCompat = NotificationManagerCompat.from(context);
|
||||||
managerCompat.notify(icon, builder.build());
|
managerCompat.notify(icon, builder.build());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user