mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
16b9b1582a
commit
1db59c34ac
|
@ -570,6 +570,11 @@ public class Helper {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void view(Context context, Uri uri, boolean browse, boolean task) {
|
static void view(Context context, Uri uri, boolean browse, boolean task) {
|
||||||
|
if (context == null) {
|
||||||
|
Log.e(new Throwable("view"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
boolean has = hasCustomTabs(context, uri);
|
boolean has = hasCustomTabs(context, uri);
|
||||||
Log.i("View=" + uri + " browse=" + browse + " task=" + task + " has=" + has);
|
Log.i("View=" + uri + " browse=" + browse + " task=" + task + " has=" + has);
|
||||||
|
|
||||||
|
@ -634,10 +639,6 @@ public class Helper {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void viewFAQ(Context context, int question) {
|
static void viewFAQ(Context context, int question) {
|
||||||
if (context == null) {
|
|
||||||
Log.e(new Throwable("FAQ"));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (question == 0)
|
if (question == 0)
|
||||||
view(context, Uri.parse(FAQ_URI), false);
|
view(context, Uri.parse(FAQ_URI), false);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue