mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: pip
This commit is contained in:
@@ -5,6 +5,7 @@ import io.flutter.embedding.engine.FlutterEngine
|
||||
import io.flutter.plugin.common.MethodChannel
|
||||
import com.ryanheise.audioservice.AudioServiceActivity
|
||||
import android.content.Intent
|
||||
import android.content.res.Configuration
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
import android.view.WindowManager.LayoutParams
|
||||
@@ -48,4 +49,9 @@ class MainActivity : AudioServiceActivity() {
|
||||
companion object {
|
||||
private const val CHANNEL = "onUserLeaveHint"
|
||||
}
|
||||
|
||||
override fun onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean, newConfig: Configuration?) {
|
||||
super.onPictureInPictureModeChanged(isInPictureInPictureMode, newConfig)
|
||||
methodChannel.invokeMethod("onPipChanged", isInPictureInPictureMode)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1040,9 +1040,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
);
|
||||
|
||||
Widget autoChoose(Widget childWhenDisabled) {
|
||||
return childWhenDisabled;
|
||||
if (Platform.isAndroid) {
|
||||
// temporarily remove it
|
||||
return PiPSwitcher(
|
||||
childWhenDisabled: childWhenDisabled,
|
||||
childWhenEnabled: childWhenEnabled,
|
||||
|
||||
@@ -570,10 +570,11 @@ packages:
|
||||
floating:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: floating
|
||||
sha256: ddcd7f28247746dbb62997c48c89d1824118676796df47fdc6f864f8d02849bc
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
path: "."
|
||||
ref: version-3
|
||||
resolved-ref: "1aa5d241e4c50ddd1b8a3bc117a99280e64f5b9c"
|
||||
url: "https://github.com/bggRGjQaUbCoE/floating.git"
|
||||
source: git
|
||||
version: "3.0.0"
|
||||
flutter:
|
||||
dependency: "direct main"
|
||||
|
||||
@@ -135,7 +135,11 @@ dependencies:
|
||||
# 代理
|
||||
system_proxy: ^0.1.0
|
||||
# pip
|
||||
floating: ^3.0.0
|
||||
# floating: ^3.0.0
|
||||
floating:
|
||||
git:
|
||||
url: https://github.com/bggRGjQaUbCoE/floating.git
|
||||
ref: version-3
|
||||
# html解析
|
||||
html: ^0.15.4
|
||||
# html渲染
|
||||
|
||||
Reference in New Issue
Block a user