|
|
@ -110,7 +110,7 @@ public class DeviceUtils { |
|
|
|
|
|
|
|
// 发送隐藏导航栏广播 |
|
|
|
String navBroadcast = "am broadcast -a android.intent.action.HIDE_NAVIGATION"; |
|
|
|
shellManager.executeCommand(navBroadcast, false); |
|
|
|
shellManager.executeCommand(navBroadcast, true); |
|
|
|
|
|
|
|
// 隐藏状态栏 |
|
|
|
String hideStatusCommand = "settings put global hide_statusbar 1"; |
|
|
@ -118,7 +118,7 @@ public class DeviceUtils { |
|
|
|
|
|
|
|
// 发送隐藏状态栏广播 |
|
|
|
String statusBroadcast = "am broadcast -a android.intent.action.HIDE_STATUSBAR"; |
|
|
|
shellManager.executeCommand(statusBroadcast, false); |
|
|
|
shellManager.executeCommand(statusBroadcast, true); |
|
|
|
|
|
|
|
Log.i(TAG, "hidePadBarV6: 成功隐藏状态栏和导航栏"); |
|
|
|
} catch (Exception e) { |
|
|
@ -140,7 +140,7 @@ public class DeviceUtils { |
|
|
|
|
|
|
|
// 发送隐藏导航栏广播 |
|
|
|
String navBroadcast = "am broadcast -a android.intent.action.HIDE_NAVIGATION"; |
|
|
|
shellManager.executeCommand(navBroadcast, false); |
|
|
|
shellManager.executeCommand(navBroadcast, true); |
|
|
|
|
|
|
|
// 显示状态栏 |
|
|
|
String showStatusCommand = "settings put global hide_statusbar 0"; |
|
|
@ -148,7 +148,7 @@ public class DeviceUtils { |
|
|
|
|
|
|
|
// 发送隐藏状态栏广播 |
|
|
|
String statusBroadcast = "am broadcast -a android.intent.action.HIDE_STATUSBAR"; |
|
|
|
shellManager.executeCommand(statusBroadcast, false); |
|
|
|
shellManager.executeCommand(statusBroadcast, true); |
|
|
|
|
|
|
|
Log.i(TAG, "showPadBarV6: 成功显示状态栏和导航栏"); |
|
|
|
} catch (Exception e) { |
|
|
|