summaryrefslogtreecommitdiffstats
path: root/ui/android
diff options
context:
space:
mode:
authornewt@chromium.org <newt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-27 20:03:40 +0000
committernewt@chromium.org <newt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-27 20:03:40 +0000
commite5e3129f1cc5ce8a01e7941ad4a8254deccf6a28 (patch)
treeebeb5327ce86d30bcef0b9cf6b4928de28114cfc /ui/android
parent785d5143b5ae1c800ea1b3cb0f32b63c53b86ab2 (diff)
downloadchromium_src-e5e3129f1cc5ce8a01e7941ad4a8254deccf6a28.zip
chromium_src-e5e3129f1cc5ce8a01e7941ad4a8254deccf6a28.tar.gz
chromium_src-e5e3129f1cc5ce8a01e7941ad4a8254deccf6a28.tar.bz2
Use SparseArrays instead of HashMaps with Integer keys.
BUG=347356 NOTRY=true Review URL: https://codereview.chromium.org/182533003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253912 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/android')
-rw-r--r--ui/android/java/src/org/chromium/ui/base/WindowAndroid.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/android/java/src/org/chromium/ui/base/WindowAndroid.java b/ui/android/java/src/org/chromium/ui/base/WindowAndroid.java
index 03a3898..309b735 100644
--- a/ui/android/java/src/org/chromium/ui/base/WindowAndroid.java
+++ b/ui/android/java/src/org/chromium/ui/base/WindowAndroid.java
@@ -4,6 +4,7 @@
package org.chromium.ui.base;
+import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.ContentResolver;
@@ -38,11 +39,16 @@ public class WindowAndroid {
protected Context mApplicationContext;
protected SparseArray<IntentCallback> mOutstandingIntents;
+
+ // Ideally, this would be a SparseArray<String>, but there's no easy way to store a
+ // SparseArray<String> in a bundle during saveInstanceState(). So we use a HashMap and suppress
+ // the Android lint warning "UseSparseArrays".
protected HashMap<Integer, String> mIntentErrors;
/**
* @param context The application context.
*/
+ @SuppressLint("UseSparseArrays")
public WindowAndroid(Context context) {
assert context == context.getApplicationContext();
mApplicationContext = context;