完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
修改frameworks/base/packages/SystemUI/src/com/android/systemui/statu***ar/phone/PhoneStatusBar.java文件
dongsy@build-server-100:~/work/dsy/3288_haier/work/3288-7.1/haier/frameworks(master)$ git diff base/packages/SystemUI/src/com/android/systemui/statu***ar/phone/PhoneStatusBar.java diff --git a/haier/frameworks/base/packages/SystemUI/src/com/android/systemui/statu***ar/phone/PhoneStatusBar.java b/haier/frameworks/ba index f55d1f7..7fded5d 100755 --- a/haier/frameworks/base/packages/SystemUI/src/com/android/systemui/statu***ar/phone/PhoneStatusBar.java +++ b/haier/frameworks/base/packages/SystemUI/src/com/android/systemui/statu***ar/phone/PhoneStatusBar.java @@ -477,8 +477,10 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, final private ContentObserver screenshotShowObserver = new ContentObserver(mHandler) { @Override public void onChange(boolean selfChange) { - boolean isShow = Settings.System.getInt(mContext.getContentResolver(), Settings.System.SCREENSHOT_BUTTON_SHOW, 1) == 1; - ButtonDispatcher screenshotButton = mNavigationBarView.getScreenshotButton(); + //20190809 modified by elink_dongsy for hide screenshot capture virtual buttons start + boolean isShow = Settings.System.getInt(mContext.getContentResolver(), Settings.System.SCREENSHOT_BUTTON_SHOW, 0) == 0; + //20190809 modified by elink_dongsy for hide screenshot capture virtual buttons end + ButtonDispatcher screenshotButton = mNavigationBarView.getScreenshotButton(); screenshotButton.setVisibility(isShow ? View.VISIBLE : View.GONE);//这里是通过判断isShow值为1,则状态为View.VISIBLE 在底部状态栏显示截屏按钮;isShow值为0,则状态为View.GONE在底部状态栏上隐藏截屏按钮 } }; @@ -1461,8 +1463,10 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, screenshotButton.setOnClickListener(mScreenshotClickListener); screenshotButton.setOnTouchListener(mScreenshotTouchListener); screenshotButton.setVisibility(View.VISIBLE); - boolean isShow=Settings.System.getInt(mContext.getContentResolver(), Settings.System.SCREENSHOT_BUTTON_SHOW, 1)==1; - if(isShow){ + //20190809 modified by elink_dongsy for hide screenshot capture virtual buttons start + boolean isShow=Settings.System.getInt(mContext.getContentResolver(), Settings.System.SCREENSHOT_BUTTON_SHOW, 0)==0; + //20190809 modified by elink_dongsy for hide screenshot capture virtual buttons end + if(isShow){ //如果isShow值为1,则 状态为View.VISIBLE 在底部状态栏显示截屏按钮 screenshotButton.setVisibility(View.VISIBLE); }else{//否则isShow值为0,则状态为View.GONE在底部状态栏上隐藏截屏按钮 screenshotButton.setVisibility(View.GONE); 根据我们现在修改的方式代码是默认在底部状态栏上隐藏截屏按钮,所以需要修改以下文件 修改/packages/apps/Settings/res/values/strings.xml文件 dongsy@build-server-100:~/work/dsy/3288_haier/work/3288-7.1/haier/frameworks(master)$ git diff ../packages/apps/Settings/res/values/strings.xml diff --git a/haier/packages/apps/Settings/res/values/strings.xml b/haier/packages/apps/Settings/res/values/strings.xml index a895fb6..ef911d1 100755 --- a/haier/packages/apps/Settings/res/values/strings.xml +++ b/haier/packages/apps/Settings/res/values/strings.xml @@ -7936,7 +7936,9 @@ - + + + 修改/packages/apps/Settings/res/values-zh-rCN/strings.xml文件 dongsy@build-server-100:~/work/dsy/3288_haier/work/3288-7.1/haier/frameworks(master)$ git diff ../packages/apps/Settings/res/values-zh-rCN/strings.xml diff --git a/haier/packages/apps/Settings/res/values-zh-rCN/strings.xml b/haier/packages/apps/Settings/res/values-zh-rCN/strings.xml index 8fff2ff..2951ab0 100755 --- a/haier/packages/apps/Settings/res/values-zh-rCN/strings.xml +++ b/haier/packages/apps/Settings/res/values-zh-rCN/strings.xml @@ -3258,7 +3258,9 @@ - + + + |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
1906 浏览 1 评论
synopsys 的design ware:DW_fpv_div,浮点数除法器,默认32位下,想提升覆盖率(TMAX),如果用功能case去提升覆盖率呢?
2382 浏览 1 评论
RK3588 GStreamer调试四路鱼眼摄像头四宫格显示报错
5175 浏览 1 评论
【飞凌嵌入式OK3576-C开发板体验】RKNN神经网络-YOLO图像识别
254 浏览 0 评论
【飞凌嵌入式OK3576-C开发板体验】SSH远程登录网络配置及CAN通讯
1336 浏览 0 评论
浏览过的版块 |
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 03:49 , Processed in 0.697916 second(s), Total 71, Slave 54 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号