final View parent = inflater.inflate(R.layout.gn_answer_fragment,
container, false);
ExtensionManager.getVilteAutoTestHelperExt().registerReceiverForAcceptAndRejectUpgrade(
getActivity(),getPresenter());
if (android.os.SystemProperties.get("qemu.hw.mainkeys").equals("0")
&& (getActivity().checkSelfPermission(Manifest.permission.STATUS_BAR)
== PackageManager.PERMISSION_GRANTED)) {
Log.i("AnswerFragment.onCreateView", "STATUS_BAR permission granted, disabling nav bar");
int flags = View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
// These flags will suppress the alert that the activity is in full view mode
// during an incoming call on a fresh system/factory reset of the app
flags |= STATUS_BAR_DISABLE_BACK | STATUS_BAR_DISABLE_HOME | STATUS_BAR_DISABLE_RECENT;
parent.setSystemUiVisibility(flags);
}
隐藏虚拟按键
最新推荐文章于 2019-09-04 11:56:41 发布