OSDN Git Service

Fix for not remembered apps only showing up in the log once, and only notifying once
authorAdam Shanks <chainsdd@gmail.com>
Tue, 8 Nov 2011 03:21:18 +0000 (21:21 -0600)
committerAdam Shanks <chainsdd@gmail.com>
Tue, 8 Nov 2011 03:21:18 +0000 (21:21 -0600)
src/com/noshufou/android/su/service/ResultService.java

index bac6c8a..4bcd649 100644 (file)
@@ -88,7 +88,10 @@ public class ResultService extends IntentService {
                 appId = c.getLong(COLUMN_ID);
                 appNotify = c.getString(COLUMN_NOTIFICATIONS);
                 appLog = c.getString(COLUMN_LOGGING);
-                allow = c.getInt(COLUMN_ALLOW);
+                int dbAllow = c.getInt(COLUMN_ALLOW);
+                if (dbAllow != -1) {
+                    allow = dbAllow;
+                }
             }
             c.close();