From 10580a7f20c3467f4185a061767050e924ae5317 Mon Sep 17 00:00:00 2001 From: Veeti Paananen Date: Tue, 3 Dec 2013 09:06:16 +0200 Subject: [PATCH] Fix crash when no SMS package is set --- src/org/thoughtcrime/securesms/util/Util.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/util/Util.java b/src/org/thoughtcrime/securesms/util/Util.java index ec12827645..450a2f0f0f 100644 --- a/src/org/thoughtcrime/securesms/util/Util.java +++ b/src/org/thoughtcrime/securesms/util/Util.java @@ -188,7 +188,7 @@ public class Util { public static boolean isDefaultSmsProvider(Context context){ return (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) || - (Telephony.Sms.getDefaultSmsPackage(context).equals(context.getPackageName())); + (context.getPackageName().equals(Telephony.Sms.getDefaultSmsPackage(context))); } // public static Bitmap loadScaledBitmap(InputStream src, int targetWidth, int targetHeight) {