Merge pull request #445 from veeti/null

Fix crash when no SMS package is set
fork-5.53.8
Moxie Marlinspike 2013-12-02 23:23:29 -08:00
commit ce4b8701fb
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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) {