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

Commit d08da04c authored by Donghyun Cho's avatar Donghyun Cho Committed by Android (Google) Code Review
Browse files

Merge "Clear calling identity before calling sendKeyEvent" into nyc-dev

parents f69a5717 5f6d404e
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -1384,8 +1384,13 @@ public class AudioService extends IAudioService.Stub {
                        synchronized (mHdmiPlaybackClient) {
                            int keyCode = (direction == -1) ? KeyEvent.KEYCODE_VOLUME_DOWN :
                                    KeyEvent.KEYCODE_VOLUME_UP;
                            final long ident = Binder.clearCallingIdentity();
                            try {
                                mHdmiPlaybackClient.sendKeyEvent(keyCode, true);
                                mHdmiPlaybackClient.sendKeyEvent(keyCode, false);
                            } finally {
                                Binder.restoreCallingIdentity(ident);
                            }
                        }
                    }
                }