From 31c8919ddcbbf995534b9eee3d7cd97298c95257 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Tue, 18 Nov 2014 04:29:39 +0100 Subject: [PATCH] Trying to avoid strings when using Intent --- .../main/java/name/gumartinm/weather/information/boot/BootReceiver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/name/gumartinm/weather/information/boot/BootReceiver.java b/app/src/main/java/name/gumartinm/weather/information/boot/BootReceiver.java index c900b6a..f8a356f 100644 --- a/app/src/main/java/name/gumartinm/weather/information/boot/BootReceiver.java +++ b/app/src/main/java/name/gumartinm/weather/information/boot/BootReceiver.java @@ -32,7 +32,7 @@ public class BootReceiver extends BroadcastReceiver { @Override public void onReceive(final Context context, final Intent intent) { - if (intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) { + if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) { // Update Time Rate final SharedPreferences sharedPreferences = PreferenceManager -- 2.1.4