当设置横屏时.流量使用情况页面不会横屏
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
当设置横屏时.进入流量使用情况.该页面不会横屏
[SOLUTION]
Remove following codein
packages/apps/settings/src/com/android/settings/DataUsageSummary.Java public
void onCreate(Bundle savedInstanceState) { // remove start int orientation =
getActivity().getResources().getConfiguration().orientation; int win_orientation
= ActivityInfo.SCREEN_ORIENTATION_sensor_PORTRAIT;; Xlog.i(TAG,"current config
orienation " + orientation); if(orientation ==
Configuration.ORIENTATION_LANDSCAPE){ win_orientation =
ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE; }
getActivity().setRequestedOrientation(win_orientation); // remove end ....
就会实现横屏显示
当设置横屏时.进入流量使用情况.该页面不会横屏
[SOLUTION]
Remove following codein
packages/apps/settings/src/com/android/settings/DataUsageSummary.Java public
void onCreate(Bundle savedInstanceState) { // remove start int orientation =
getActivity().getResources().getConfiguration().orientation; int win_orientation
= ActivityInfo.SCREEN_ORIENTATION_sensor_PORTRAIT;; Xlog.i(TAG,"current config
orienation " + orientation); if(orientation ==
Configuration.ORIENTATION_LANDSCAPE){ win_orientation =
ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE; }
getActivity().setRequestedOrientation(win_orientation); // remove end ....
就会实现横屏显示
感谢分享,非常不错
学习了~~~~~~