自学内容网 自学内容网

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.
     */
    @Override
    public 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) {
            }
        }
    }

修改后验证即可;


原文地址:https://blog.csdn.net/chenchen4310/article/details/142597535

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!