Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
0bdd161d69 | |||
5c075ee168 | |||
1299ff2d2e |
@ -255,8 +255,7 @@ public abstract class AbstractSDParentActivity extends TabActivity {
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean getAlarms(long userID)
|
public boolean getAlarms(long userID) {
|
||||||
{
|
|
||||||
if (tcp == null)
|
if (tcp == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -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,7 +1739,10 @@ public class TabLayoutActivity extends AbstractSDParentActivity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
//list for SMS
|
||||||
|
if (AppParams.crtTab == AppParams.Tabs.alarms)
|
||||||
|
getAlarms(AppParams.USERID);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -2052,7 +2049,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());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user