Android13 展锐平台拨号中视频彩铃界面方向未与设备方向一致
背景:拨号中视频彩铃界面方向未与设备方向一致,要求视频彩铃界面方向与设备方向一致,修改视频彩铃显示的地方;
如图所示:
修改:
packages/services/Telecomm/src/com/android/server/telecom/VideoProviderProxy.java/*** Proxies a request from the {@link InCallService} to the* {@link #mConectionServiceVideoProvider} to change the device orientation.** @param rotation The device orientation, in degrees.*/@Overridepublic void onSetDeviceOrientation(int rotation) {synchronized (mLock) {logFromInCall("setDeviceOrientation: " + rotation);try {//modified int mRotation = mCall.getContext().getResources().getConfiguration().orientation;logFromInCall("setDeviceOrientation:mRotation = " + mRotation);mConectionServiceVideoProvider.setDeviceOrientation(mRotation);//end} catch (RemoteException e) {}}}
修改后验证即可;