File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
OneSignalSDK/onesignal/src/main/java/com/onesignal Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 15
15
16
16
class OSInAppMessageRepository {
17
17
18
+ final static long IAM_CACHE_DATA_LIFETIME = 15_552_000L ; // 6 months in seconds
19
+
18
20
private final OneSignalDbHelper dbHelper ;
19
21
20
22
OSInAppMessageRepository (OneSignalDbHelper dbHelper ) {
@@ -101,7 +103,7 @@ synchronized void cleanCachedInAppMessages() {
101
103
102
104
String whereStr = OneSignalDbContract .InAppMessageTable .COLUMN_NAME_LAST_DISPLAY + " < ?" ;
103
105
104
- String sixMonthsAgoInSeconds = String .valueOf ((System .currentTimeMillis () / 1_000L ) - OneSignalCacheCleaner . IAM_CACHE_DATA_LIFETIME );
106
+ String sixMonthsAgoInSeconds = String .valueOf ((System .currentTimeMillis () / 1_000L ) - IAM_CACHE_DATA_LIFETIME );
105
107
String [] whereArgs = new String []{sixMonthsAgoInSeconds };
106
108
107
109
Set <String > oldMessageIds = OSUtils .newConcurrentSet ();
Original file line number Diff line number Diff line change 12
12
13
13
class OneSignalCacheCleaner {
14
14
15
- private final static long NOTIFICATION_CACHE_DATA_LIFETIME = 604_800L ; // 7 days in seconds
16
- final static long IAM_CACHE_DATA_LIFETIME = 15_552_000L ; // 6 months in seconds
15
+ private final static long NOTIFICATION_CACHE_DATA_LIFETIME = 604_800L ; // 7 days in second
17
16
18
17
private final static String OS_DELETE_CACHED_NOTIFICATIONS_THREAD = "OS_DELETE_CACHED_NOTIFICATIONS_THREAD" ;
19
18
private final static String OS_DELETE_CACHED_REDISPLAYED_IAMS_THREAD = "OS_DELETE_CACHED_REDISPLAYED_IAMS_THREAD" ;
You can’t perform that action at this time.
0 commit comments