diff options
author | Christian Schneppe <christian@pix-art.de> | 2016-11-18 22:10:24 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-11-18 22:10:24 +0100 |
commit | 5d7ef6daf7e4cbafbbc1ba805d6ecab1c74df3c5 (patch) | |
tree | ca15baca0876b90f3907d9ba67c5dd1e80a8451d /src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java | |
parent | 7bc0ddde205da85b6eec2b6803724f7e67dd2beb (diff) |
reset startup count when swiped away (only count kills)
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java b/src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java index ada5bf71b..d892c76e3 100644 --- a/src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java +++ b/src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java @@ -1283,10 +1283,12 @@ public class DatabaseBackend extends SQLiteOpenHelper { count = 0; } cursor.close(); + Log.d(Config.LOGTAG,"start time counter reached "+count); return count >= Config.FREQUENT_RESTARTS_THRESHOLD; } public void clearStartTimeCounter() { + Log.d(Config.LOGTAG,"resetting start time counter"); SQLiteDatabase db = this.getWritableDatabase(); db.execSQL("delete from " + START_TIMES_TABLE); } |