Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralexzatsepin <az@mapswithme.com>2017-03-28 20:48:52 +0300
committerVladimir Byko-Ianko <bykoianko@gmail.com>2017-04-12 09:11:27 +0300
commit0ab9df1db573b9b2180d6a9b34047f41033618a5 (patch)
treefc371d5f13e5c76692b7bcac79fd8caaa9888952 /android/src/com/mapswithme/maps/ads/DefaultAdTracker.java
parent692b0591cc2c57fdc2552ffce2ebb3d552e334ce (diff)
[android] Fixed review notes
Diffstat (limited to 'android/src/com/mapswithme/maps/ads/DefaultAdTracker.java')
-rw-r--r--android/src/com/mapswithme/maps/ads/DefaultAdTracker.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/src/com/mapswithme/maps/ads/DefaultAdTracker.java b/android/src/com/mapswithme/maps/ads/DefaultAdTracker.java
index c66359510a..6fbfe8298c 100644
--- a/android/src/com/mapswithme/maps/ads/DefaultAdTracker.java
+++ b/android/src/com/mapswithme/maps/ads/DefaultAdTracker.java
@@ -125,6 +125,10 @@ public class DefaultAdTracker implements AdTracker, OnAdCacheModifiedListener
LOGGER.d(TAG, "it's a last time for this ad");
return;
}
+
+ if (mTimestamp == 0)
+ throw new AssertionError("A timestamp mustn't be 0 when ad is hidden!");
+
mShowTime += SystemClock.elapsedRealtime() - mTimestamp;
LOGGER.d(TAG, "A show time = " + mShowTime);
mTimestamp = 0;