Merge pull request 'display alarm notification' (#20) from SD-224 into develop
Reviewed-on: #20
This commit is contained in:
commit
73d2cedfba
@ -1688,13 +1688,7 @@ public class TabLayoutActivity extends AbstractSDParentActivity {
|
||||
SM.Debug("Unit imei:" + 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
|
||||
setImei(unitIMEI);
|
||||
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)
|
||||
.setContentIntent(pendingIntent);
|
||||
|
||||
Log.v("test111", "test");
|
||||
NotificationManagerCompat managerCompat = NotificationManagerCompat.from(context);
|
||||
managerCompat.notify(icon, builder.build());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user