Skip to content

Commit cfc06aa

Browse files
authored
禁止在截屏分享页面使用小窗 (#958)
* 禁止在截屏分享页面使用小窗 * 禁止在截屏分享页面使用小窗
1 parent b07dbc6 commit cfc06aa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/src/main/java/com/sevtinge/hyperceiler/module/hook/systemframework/freeform/OpenAppInFreeForm.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ private boolean shouldOpenInFreeForm(Intent intent, String callingPackage) {
119119
boolean openInFw = false;
120120
final boolean openFwWhenShare = mPrefsMap.getBoolean("system_framework_freeform_app_share");
121121
if (openFwWhenShare) {
122+
if ("com.miui.screenshot".equals(callingPackage)) {
123+
return false;
124+
}
122125
/*if (mPrefsMap.getStringSet("system_fw_forcein_actionsend_apps").contains(pkgName)) return false;*/
123126
if ("com.miui.packageinstaller".equals(pkgName) && intent.getComponent().getClassName().contains("com.miui.packageInstaller.NewPackageInstallerActivity")) {
124127
return true;

0 commit comments

Comments
 (0)