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

Commit 70f23fba authored by Donghyun Cho's avatar Donghyun Cho Committed by android-build-merger
Browse files

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

am: d08da04c

* commit 'd08da04c':
  Clear calling identity before calling sendKeyEvent
parents 56a7face d08da04c
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);
                            }
                        }
                    }
                }