Added error logging

pull/147/head
M66B 6 years ago
parent 351ae13234
commit 5930e5e561

@ -1297,6 +1297,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
ActivityView.REQUEST_DECRYPT, ActivityView.REQUEST_DECRYPT,
null, 0, 0, 0, null); null, 0, 0, 0, null);
} catch (IntentSender.SendIntentException ex) { } catch (IntentSender.SendIntentException ex) {
Log.e(ex);
Helper.unexpectedError(ActivityView.this, ActivityView.this, ex); Helper.unexpectedError(ActivityView.this, ActivityView.this, ex);
} }
} }

@ -765,6 +765,7 @@ public class FragmentCompose extends FragmentEx {
ActivityCompose.REQUEST_ENCRYPT, ActivityCompose.REQUEST_ENCRYPT,
null, 0, 0, 0, null); null, 0, 0, 0, null);
} catch (IntentSender.SendIntentException ex) { } catch (IntentSender.SendIntentException ex) {
Log.e(ex);
Helper.unexpectedError(getContext(), getViewLifecycleOwner(), ex); Helper.unexpectedError(getContext(), getViewLifecycleOwner(), ex);
} }
} }

@ -135,6 +135,7 @@ public class Helper {
} catch (ActivityNotFoundException ex) { } catch (ActivityNotFoundException ex) {
Toast.makeText(context, context.getString(R.string.title_no_viewer, uri.toString()), Toast.LENGTH_LONG).show(); Toast.makeText(context, context.getString(R.string.title_no_viewer, uri.toString()), Toast.LENGTH_LONG).show();
} catch (Throwable ex) { } catch (Throwable ex) {
Log.e(ex);
Helper.unexpectedError(context, owner, ex); Helper.unexpectedError(context, owner, ex);
} }
} }

Loading…
Cancel
Save