mirror of
https://github.com/M66B/FairEmail.git
synced 2026-02-03 05:28:19 +01:00
Prevent crash
This commit is contained in:
@@ -570,6 +570,11 @@ public class Helper {
|
||||
}
|
||||
|
||||
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);
|
||||
Log.i("View=" + uri + " browse=" + browse + " task=" + task + " has=" + has);
|
||||
|
||||
@@ -634,10 +639,6 @@ public class Helper {
|
||||
}
|
||||
|
||||
static void viewFAQ(Context context, int question) {
|
||||
if (context == null) {
|
||||
Log.e(new Throwable("FAQ"));
|
||||
return;
|
||||
}
|
||||
if (question == 0)
|
||||
view(context, Uri.parse(FAQ_URI), false);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user