diff options
author | Dmitry Yunitsky <yunik@mapswithme.com> | 2015-08-24 13:20:33 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:02:12 +0300 |
commit | c85f5ce76a9d8279a42dd33765dc4f31e283362a (patch) | |
tree | 2da6a4ea8591038a3c6dc027463e75783c6f84ab /android/src/com/mapswithme/maps/ads/LikesManager.java | |
parent | 81aa2feffe24d9029ab84dd5e8a222976b1d0c5a (diff) |
[android] Changed logic for pedestrian dialog.
Diffstat (limited to 'android/src/com/mapswithme/maps/ads/LikesManager.java')
-rw-r--r-- | android/src/com/mapswithme/maps/ads/LikesManager.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/android/src/com/mapswithme/maps/ads/LikesManager.java b/android/src/com/mapswithme/maps/ads/LikesManager.java index d705eb23fd..b7554c62e9 100644 --- a/android/src/com/mapswithme/maps/ads/LikesManager.java +++ b/android/src/com/mapswithme/maps/ads/LikesManager.java @@ -2,7 +2,6 @@ package com.mapswithme.maps.ads; import android.support.v4.app.DialogFragment; import android.support.v4.app.FragmentActivity; -import android.text.format.DateUtils; import android.util.SparseArray; import com.mapswithme.maps.BuildConfig; @@ -19,7 +18,6 @@ public enum LikesManager public static final String LAST_RATED_SESSION = "LastRatedSession"; public static final String RATED_DIALOG = "RatedDialog"; public static final String PEDESTRIAN_COUNT = "PedestrianCount"; - public static final String PEDESTRIAN_LAST_STAMP = "LastPedestrianTimestamp"; private static final int DIALOG_DELAY_DEFAULT = 30000; private static final int DIALOG_DELAY_SHORT = 5000; @@ -69,7 +67,10 @@ public enum LikesManager sOldUsersMapping.put(50, LikeType.FACEBOOK_INVITES_OLD_USERS); if (MwmApplication.get().nativeGetInt(PEDESTRIAN_COUNT, 0) >= 3) + { sOldUsersMapping.put(SESSION_NUM, LikeType.FACEBOOK_PEDESTRIAN_MASTER_OLD_USERS); + sNewUsersMapping.put(SESSION_NUM, LikeType.FACEBOOK_PEDESTRIAN_MASTER_OLD_USERS); + } sNewUsersMapping.put(3, LikeType.GPLAY_NEW_USERS); sNewUsersMapping.put(9, LikeType.FACEBOOK_INVITE_NEW_USERS); @@ -107,11 +108,7 @@ public enum LikesManager public void onPedestrianBuilt() { final MwmApplication APP = MwmApplication.get(); - final long lastTimeStamp = APP.nativeGetLong(PEDESTRIAN_LAST_STAMP, 0); - if (DateUtils.isToday(lastTimeStamp)) - return; - APP.nativeSetLong(PEDESTRIAN_LAST_STAMP, System.currentTimeMillis()); APP.nativeSetInt(PEDESTRIAN_COUNT, APP.nativeGetInt(PEDESTRIAN_COUNT, 0) + 1); } |