From: Gustavo Martin Morcuende Date: Tue, 18 Nov 2014 03:29:39 +0000 (+0100) Subject: Trying to avoid strings when using Intent X-Git-Tag: weatherinformation-1.0~47 X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=31c8919ddcbbf995534b9eee3d7cd97298c95257;p=AndroidWeatherInformation Trying to avoid strings when using Intent --- 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