diff options
author | Alexander Marchuk <alexm@maps.me> | 2016-06-15 21:02:31 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-06-24 13:31:42 +0300 |
commit | 955afeedecf4096b9aa815a99312f6aad5f6f836 (patch) | |
tree | 6efd542d5f3b8b6c4ccfbaca84b7fc28206a6b89 /android | |
parent | f9504988c85942805e7afe7ec22bc76950d3929d (diff) |
[android][downloader] fix: Update size could be negative.
Diffstat (limited to 'android')
-rw-r--r-- | android/jni/com/mapswithme/maps/MapManager.cpp | 2 | ||||
-rw-r--r-- | android/src/com/mapswithme/maps/downloader/UpdateInfo.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/android/jni/com/mapswithme/maps/MapManager.cpp b/android/jni/com/mapswithme/maps/MapManager.cpp index 75a7f5b32d..6889012c1e 100644 --- a/android/jni/com/mapswithme/maps/MapManager.cpp +++ b/android/jni/com/mapswithme/maps/MapManager.cpp @@ -243,7 +243,7 @@ Java_com_mapswithme_maps_downloader_MapManager_nativeGetUpdateInfo(JNIEnv * env, static jclass const infoClass = jni::GetGlobalClassRef(env, "com/mapswithme/maps/downloader/UpdateInfo"); ASSERT(infoClass, (jni::DescribeException())); - static jmethodID const ctor = jni::GetConstructorID(env, infoClass, "(II)V"); + static jmethodID const ctor = jni::GetConstructorID(env, infoClass, "(IJ)V"); ASSERT(ctor, (jni::DescribeException())); return env->NewObject(infoClass, ctor, info.m_numberOfMwmFilesToUpdate, info.m_totalUpdateSizeInBytes); diff --git a/android/src/com/mapswithme/maps/downloader/UpdateInfo.java b/android/src/com/mapswithme/maps/downloader/UpdateInfo.java index a9998237a6..de2b7f7aa8 100644 --- a/android/src/com/mapswithme/maps/downloader/UpdateInfo.java +++ b/android/src/com/mapswithme/maps/downloader/UpdateInfo.java @@ -6,9 +6,9 @@ package com.mapswithme.maps.downloader; public final class UpdateInfo { public final int filesCount; - public final int totalSize; + public final long totalSize; - public UpdateInfo(int filesCount, int totalSize) + public UpdateInfo(int filesCount, long totalSize) { this.filesCount = filesCount; this.totalSize = totalSize; |