summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2016-04-28 09:23:40 -0700
committerd34d <clark@cyngn.com>2016-04-28 09:23:40 -0700
commit2e21c73a35053a54ee75abc3283b6fde19772d29 (patch)
tree3c705c423afcc840d2a82b0093287d846208f417
parentda8c19f383fb01dfc853907b4543cfe8b644a15d (diff)
downloadpackages_apps_ThemeChooser-2e21c73a35053a54ee75abc3283b6fde19772d29.tar.gz
packages_apps_ThemeChooser-2e21c73a35053a54ee75abc3283b6fde19772d29.tar.bz2
packages_apps_ThemeChooser-2e21c73a35053a54ee75abc3283b6fde19772d29.zip
Avoid using equals() on a possibly null action
Use the string constant instead to check if action is equal to ACTION_PICK_LOCK_SCREEN_WALLPAPER Change-Id: If5d565644eb7c41eb25638025ffccf9a252b34fd TICKET: CYNGNOS-2611
-rw-r--r--src/com/cyngn/theme/chooser/ChooserActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/cyngn/theme/chooser/ChooserActivity.java b/src/com/cyngn/theme/chooser/ChooserActivity.java
index a08652b..024b19e 100644
--- a/src/com/cyngn/theme/chooser/ChooserActivity.java
+++ b/src/com/cyngn/theme/chooser/ChooserActivity.java
@@ -400,7 +400,7 @@ public class ChooserActivity extends FragmentActivity
getCallingPackage())) {
mThemeToApply = intent.getStringExtra(EXTRA_PKGNAME);
}
- } else if (action.equals(ACTION_PICK_LOCK_SCREEN_WALLPAPER)) {
+ } else if (ACTION_PICK_LOCK_SCREEN_WALLPAPER.equals(action)) {
mShowLockScreenWallpaper = true;
}
}