隐藏虚拟按键

xiaoxiao2021-02-28  111

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); }
转载请注明原文地址: https://www.6miu.com/read-38398.html

最新回复(0)