Platform: RK3399
OS: Android 7.1
Kernel: v4.4.83
原因:
在没有物理按键和导航栏的情况下没法退出设置界面,不过app里有自带此功能,只是默认关闭的。
方法:
diff --git a/src/com/android/settings/SettingsActivity.java b/src/com/android/settings/SettingsActivity.java
index 1a615d8..e53d42b 100644
--- a/src/com/android/settings/SettingsActivity.java
+++ b/src/com/android/settings/SettingsActivity.java
[url=home.php?mod=space&uid=1999721]@@[/url] -629,7 +629,8 @@ public class SettingsActivity extends SettingsDrawerActivity
mInitialTitleResId, mInitialTitle, false);
} else {
// No UP affordance if we are displaying the main Dashboard
mDisplayHomeAsUpEnabled = false
mDisplayHomeAsUpEnabled = true;
mDisplaySearch = true;
mInitialTitleResId = R.string.dashboard_title;
改动后效果:
![1.jpg](//file.elecfans.com/web2/M00/7C/15/pYYBAGN2AO2AUgb2AAJV68bqepo092.jpg)
原作者:KrisFei
|