From 74286a97f9e08180b3c5cd6993b4d6e7b319522c Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Mon, 13 Feb 2012 02:24:32 +0300 Subject: [PATCH] [android] Warning fixes --- .../src/com/mapswithme/maps/MWMActivity.java | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/android/src/com/mapswithme/maps/MWMActivity.java b/android/src/com/mapswithme/maps/MWMActivity.java index 56c60df2bd..9c9cc41698 100644 --- a/android/src/com/mapswithme/maps/MWMActivity.java +++ b/android/src/com/mapswithme/maps/MWMActivity.java @@ -16,14 +16,12 @@ import android.content.IntentFilter; import android.content.pm.PackageManager.NameNotFoundException; import android.os.Bundle; import android.os.Environment; -import android.view.Gravity; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.webkit.WebView; -import android.widget.TextView; import android.util.DisplayMetrics; import android.util.Log; @@ -81,7 +79,7 @@ public class MWMActivity extends NvEventQueueActivity implements } }); } - + public void ReportUnsupported() { runOnUiThread(new Runnable() @@ -89,9 +87,9 @@ public class MWMActivity extends NvEventQueueActivity implements public void run() { AlertDialog alert = new AlertDialog.Builder(getCurrentContext()).create(); - + alert.setMessage(getString(R.string.unsupported_phone)); - + alert.setCancelable(false); alert.setButton(AlertDialog.BUTTON_POSITIVE, getString(R.string.close), @@ -108,9 +106,9 @@ public class MWMActivity extends NvEventQueueActivity implements alert.show(); } }); - + } - + private void checkMeasurementSystem() { int u; @@ -417,13 +415,13 @@ public class MWMActivity extends NvEventQueueActivity implements private native void nativeStorageConnected(); private native void nativeStorageDisconnected(); - private native void nativeInit(int densityDpi, - int screenWidth, + private native void nativeInit(int densityDpi, + int screenWidth, int screenHeight, String apkPath, - String storagePath, - String tmpPath, - String extTmpPath, + String storagePath, + String tmpPath, + String extTmpPath, String settingsPath, String emptyModelMessage); private native void nativeDestroy();