#78 Auto Disappear notification after click on it

Zlúčené
fynngodau mergnuté 1 commitov z Bixilon/master do fynngodau/master 4 rokov pred

+ 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()
         );
     }