when receiving a new alarm && current tab is alarms, refresh alarm list #22

Merged
CiufudeanDani merged 1 commits from SD-224 into develop 2022-04-07 10:16:36 +00:00
2 changed files with 4 additions and 7 deletions

View File

@ -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;

View File

@ -1741,11 +1741,9 @@ public class TabLayoutActivity extends AbstractSDParentActivity {
} }
//list for SMS //list for SMS
if (AppParams.crtTab == AppParams.Tabs.alarms) { if (AppParams.crtTab == AppParams.Tabs.alarms)
SM.Debug("currentActivity instanceof AlarmActivity - newSMS | " + tempArr[0] + " | " + tempArr[1]);
getAlarms(AppParams.USERID); getAlarms(AppParams.USERID);
} }
}
@Override @Override
public void onRecordingsListReceived(TCPEvent event) { public void onRecordingsListReceived(TCPEvent event) {