Merge "Add System Back function to SystemUiProxy" into sc-dev

This commit is contained in:
Marvin Bernal
2021-03-31 20:59:03 +00:00
committed by Android (Google) Code Review
@@ -87,6 +87,17 @@ public class SystemUiProxy implements ISystemUiProxy,
setNavBarButtonAlpha(1f, false);
}
@Override
public void onBackPressed() {
if (mSystemUiProxy != null) {
try {
mSystemUiProxy.onBackPressed();
} catch (RemoteException e) {
Log.w(TAG, "Failed call onBackPressed", e);
}
}
}
@Override
public IBinder asBinder() {
// Do nothing