#78 Auto Disappear notification after click on it

Merged
fynngodau merged 1 commits from Bixilon/master into fynngodau/master 4 years ago

+ 1 - 1
app/src/main/java/godau/fynn/dsbdirect/manager/DownloadManager.java

@@ -348,7 +348,7 @@ public class DownloadManager {
                         request("https://www.dsbmobile.de/scripts/configuration.js", null, "GET"),
                         "UTF-8"
                 );
-                return "https://www.dsbmobile.de/" + webConfiguration.split("'")[3];
+                return "https://www.dsbmobile.de/" + webConfiguration.split("'")[3]; //bad solution, web endpoint obfuscated -> method outdated
 
             case 2:
                 return "https://ihkmobile.dsbcontrol.de/new/JsonHandlerWeb.ashx/GetData";

+ 1 - 1
app/src/main/java/godau/fynn/dsbdirect/table/PollingService.java

@@ -263,7 +263,7 @@ public class PollingService extends JobService {
                 .setColorized(true)
                 .setColor(Color.argb(255, 63, 81, 181))
                 .setTimeoutAfter(timeoutAfter)
-                .setAutoCancel(false) // Parsed notifications might still be valuable after they had been opened
+                .setAutoCancel(true) // Parsed notifications should disappear after they had been opened
                 .build()
         );
     }