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

Commit d5d6f3e8 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

Change-Id: Ic37f81a2f8617851b50eb6e44f5fb7e9d2e0a1f0
parents c421f748 4b0d2bf7
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);
            }
        }
    }