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

Commit 90c3f65b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Post system_server toasts as system_server"

parents ec7eeb59 25c0e878
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -146,13 +146,14 @@ public final class PrintManagerService extends SystemService {
                final long identity = Binder.clearCallingIdentity();
                try {
                    disabledMessage = dpmi.getPrintingDisabledReasonForUser(callingUserId);
                } finally {
                    Binder.restoreCallingIdentity(identity);
                }

                    if (disabledMessage != null) {
                        Toast.makeText(mContext, Looper.getMainLooper(), disabledMessage,
                                Toast.LENGTH_LONG).show();
                    }
                } finally {
                    Binder.restoreCallingIdentity(identity);
                }
                try {
                    adapter.start();
                } catch (RemoteException re) {