mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 21:34:44 +02:00
Report viewer error
This commit is contained in:
@@ -157,12 +157,8 @@ public class FragmentBase extends Fragment {
|
||||
Log.i("Start intent=" + intent);
|
||||
Log.logExtras(intent);
|
||||
super.startActivity(intent);
|
||||
} catch (ActivityNotFoundException ex) {
|
||||
Log.w(ex);
|
||||
Helper.reportNoViewer(getContext(), intent);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
ToastEx.makeText(getContext(), Log.formatThrowable(ex), Toast.LENGTH_LONG).show();
|
||||
Helper.reportNoViewer(getContext(), intent, ex);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -172,12 +168,8 @@ public class FragmentBase extends Fragment {
|
||||
Log.i("Start intent=" + intent + " request=" + requestCode);
|
||||
Log.logExtras(intent);
|
||||
super.startActivityForResult(intent, requestCode);
|
||||
} catch (ActivityNotFoundException ex) {
|
||||
Log.w(ex);
|
||||
Helper.reportNoViewer(getContext(), intent);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
ToastEx.makeText(getContext(), Log.formatThrowable(ex), Toast.LENGTH_LONG).show();
|
||||
Helper.reportNoViewer(getContext(), intent, ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user