100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
dismiss android notification dropdown panel
Mica Hallin6b34d2c07d39
diff --git a/console/android/src/main/java/org/openremote/android/MainActivity.java b/console/android/src/main/java/org/openremote/android/MainActivity.javaindex ba3252b9c..d724747d0 100644--- a/console/android/src/main/java/org/openremote/android/MainActivity.java+++ b/console/android/src/main/java/org/openremote/android/MainActivity.java@@ -168,6 +168,10 @@ public class MainActivity extends Activity {public void onReceivedHttpError(WebView view, WebResourceRequest request, WebResourceResponse errorResponse) {LOG.warning("request url :" + request.getUrl().toString());LOG.warning("error :" + errorResponse.getStatusCode());+ //avoid display error if failed to refresh token will be redirect to login+ if (errorResponse.getStatusCode() == 400 && request.getUrl().toString().endsWith("token")) {+ return;+ }errorViewHolder.show(R.string.httpError,R.string.httpErrorExplain,true,true);}diff --git a/console/android/src/main/java/org/openremote/android/ORMessagingActionService.java b/console/android/src/main/java/org/openremote/android/ORMessagingActionService.javaindex a436fd280..9d64587f3 100644--- a/console/android/src/main/java/org/openremote/android/ORMessagingActionService.java+++ b/console/android/src/main/java/org/openremote/android/ORMessagingActionService.java@@ -26,6 +26,10 @@ public class ORMessagingActionService extends IntentService {@Overrideprotected void onHandleIntent(@Nullable Intent intent) {++ Intent it = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);+ this.sendBroadcast(it);+AlertNotification notification = (AlertNotification) intent.getSerializableExtra("notification");tokenService.deleteAlert(notification.getId());@@ -44,7 +48,5 @@ public class ORMessagingActionService extends IntentService {activityIntent.putExtra("url", intent.getStringExtra("url"));startActivity(activityIntent);}--}}