|
|
@@ -190,6 +190,10 @@ public class ScreenStreamPlugin implements MethodChannel.MethodCallHandler, Plug
|
|
|
if (mAlivcLivePusher != null && mAlivcLivePusher.isPushing()) {
|
|
|
mAlivcLivePusher.stopPush();
|
|
|
}
|
|
|
+ if (floatButton != null) {
|
|
|
+ windowManager.removeView(floatButton);
|
|
|
+ floatButton = null;
|
|
|
+ }
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
@@ -364,6 +368,7 @@ public class ScreenStreamPlugin implements MethodChannel.MethodCallHandler, Plug
|
|
|
result.error("needs permission", "permission not granted", null);
|
|
|
}
|
|
|
}
|
|
|
+ break;
|
|
|
case FLOATING_WINDOW_REQUEST_CODE: {
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
|
|
if (!Settings.canDrawOverlays(registrar.context())) {
|