Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e9d929e authored by Geoffrey Pitsch's avatar Geoffrey Pitsch Committed by android-build-merger
Browse files

Merge "Don't let toasting throw a runtime exception." into oc-dev am: 4b0d2bf7

am: d5d6f3e8

Change-Id: Iba0bf5320f8ccd53d261c057cd7dd3314bcca300
parents 0bbc82cb d5d6f3e8
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -3229,8 +3229,12 @@ public class NotificationManagerService extends SystemService {

    private void doDebugOnlyToast(CharSequence toastText) {
        if (Build.IS_DEBUGGABLE) {
            try {
                Toast toast = Toast.makeText(getContext(), toastText, Toast.LENGTH_LONG);
                toast.show();
            } catch (RuntimeException e) {
                Slog.w(TAG, "Unable to toast with text: " + toastText, e);
            }
        }
    }