From 2e21c73a35053a54ee75abc3283b6fde19772d29 Mon Sep 17 00:00:00 2001 From: d34d Date: Thu, 28 Apr 2016 09:23:40 -0700 Subject: 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 --- src/com/cyngn/theme/chooser/ChooserActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.1