mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-14 21:24:02 +08:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24769e144f | ||
|
|
50875421a5 | ||
|
|
0581d8f7d4 | ||
|
|
be9f39d043 | ||
|
|
034482362d |
@@ -22,8 +22,6 @@ import com.ryanheise.audioservice.AudioServiceActivity
|
||||
import io.flutter.embedding.engine.FlutterEngine
|
||||
import io.flutter.plugin.common.MethodChannel
|
||||
import kotlin.math.roundToInt
|
||||
import kotlin.system.exitProcess
|
||||
import java.io.File
|
||||
|
||||
class MainActivity : AudioServiceActivity() {
|
||||
private lateinit var methodChannel: MethodChannel
|
||||
@@ -35,7 +33,7 @@ class MainActivity : AudioServiceActivity() {
|
||||
methodChannel = MethodChannel(flutterEngine.dartExecutor.binaryMessenger, "PiliPlus")
|
||||
methodChannel.setMethodCallHandler { call, result ->
|
||||
when (call.method) {
|
||||
"back" -> back();
|
||||
"back" -> back()
|
||||
|
||||
"biliSendCommAntifraud" -> {
|
||||
try {
|
||||
@@ -50,7 +48,7 @@ class MainActivity : AudioServiceActivity() {
|
||||
val pictures = call.argument<String?>("pictures")
|
||||
val sourceId = call.argument<String>("source_id") ?: ""
|
||||
val uid = call.argument<Number>("uid") ?: 0L
|
||||
val cookies = call.argument<List<String>>("cookies") ?: emptyList<String>()
|
||||
val cookies = call.argument<List<String>>("cookies") ?: emptyList()
|
||||
|
||||
val intent = Intent().apply {
|
||||
component = ComponentName(
|
||||
@@ -170,7 +168,7 @@ class MainActivity : AudioServiceActivity() {
|
||||
pendingIntent.intentSender
|
||||
)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
} catch (_: Exception) {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -219,7 +217,7 @@ class MainActivity : AudioServiceActivity() {
|
||||
"maxHeight" to (realSizePoint.y / density).roundToInt(),
|
||||
)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
} catch (_: Exception) {
|
||||
return null
|
||||
}
|
||||
}
|
||||
@@ -243,7 +241,7 @@ class MainActivity : AudioServiceActivity() {
|
||||
try {
|
||||
isFoldable =
|
||||
packageManager.hasSystemFeature(PackageManager.FEATURE_SENSOR_HINGE_ANGLE)
|
||||
} catch (e: Exception) {
|
||||
} catch (_: Exception) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -150,6 +150,14 @@ class ImmediateTapGestureRecognizer extends OneSequenceGestureRecognizer {
|
||||
_initialPosition = null;
|
||||
}
|
||||
|
||||
@override
|
||||
void resolve(GestureDisposition disposition) {
|
||||
if (_wonArena && disposition == GestureDisposition.rejected) {
|
||||
_cancelGesture('spontaneous');
|
||||
}
|
||||
super.resolve(disposition);
|
||||
}
|
||||
|
||||
@override
|
||||
String get debugDescription => 'immediate tap';
|
||||
|
||||
|
||||
@@ -801,7 +801,7 @@ class _CreateDynPanelState extends CommonRichTextPubPageState<CreateDynPanel> {
|
||||
SmartDialog.showToast('发布成功');
|
||||
final id = response?['dyn_id'];
|
||||
RequestUtils.insertCreatedDyn(id);
|
||||
if (!_isPrivate.value) {
|
||||
if (!_isPrivate.value && _publishTime.value == null) {
|
||||
RequestUtils.checkCreatedDyn(
|
||||
id: id,
|
||||
dynText: editController.rawText,
|
||||
|
||||
@@ -1245,14 +1245,11 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
||||
if (PlatformUtils.isMobile) {
|
||||
_tapGestureRecognizer.addPointer(event);
|
||||
if (controlsUnlock) {
|
||||
final flag = _isPositionAllowed(event.localPosition);
|
||||
if (!plPlayerController.isLive) {
|
||||
_doubleTapGestureRecognizer.addPointer(event);
|
||||
if (flag) {
|
||||
longPressRecognizer.addPointer(event);
|
||||
}
|
||||
longPressRecognizer.addPointer(event);
|
||||
}
|
||||
if (flag) {
|
||||
if (_isPositionAllowed(event.localPosition)) {
|
||||
_scaleGestureRecognizer.addPointer(event);
|
||||
}
|
||||
}
|
||||
|
||||
17
pubspec.lock
17
pubspec.lock
@@ -528,10 +528,11 @@ packages:
|
||||
file_picker:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: file_picker
|
||||
sha256: "1d4afa261268e59863af47b9f9dd9a230502d4c702b9d9183353646fe6d5b6e1"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
path: "."
|
||||
ref: dev
|
||||
resolved-ref: "5d269611e493420302aeba4d8305c1d44a67281f"
|
||||
url: "https://github.com/bggRGjQaUbCoE/flutter_file_picker.git"
|
||||
source: git
|
||||
version: "12.0.0-beta.1"
|
||||
file_selector_linux:
|
||||
dependency: transitive
|
||||
@@ -1938,10 +1939,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: vector_graphics
|
||||
sha256: "6409a25046024f0f8c5d8a59fec314081e81f9d436b66ca4015a8b49772bf445"
|
||||
sha256: "4d35a36400983c3457c289d4d553b5308f506ea84f7e51c7a564651b5525209a"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.2.0"
|
||||
version: "1.2.1"
|
||||
vector_graphics_codec:
|
||||
dependency: transitive
|
||||
description:
|
||||
@@ -1954,10 +1955,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: vector_graphics_compiler
|
||||
sha256: "06f0c50f88a1a020f95138dcc14ef4d5a039ced3f89b386209e6763dfa2cefa0"
|
||||
sha256: "98e7e94de127b46a86ef46197fff84ff99f3d3b80a708390d717ad731efef598"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.2.1"
|
||||
version: "1.2.2"
|
||||
vector_math:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
||||
@@ -224,7 +224,10 @@ dependencies:
|
||||
path: packages/window_manager
|
||||
ref: main
|
||||
tray_manager: ^0.5.1
|
||||
file_picker: ^12.0.0-beta.1
|
||||
file_picker:
|
||||
git:
|
||||
url: https://github.com/bggRGjQaUbCoE/flutter_file_picker.git
|
||||
ref: dev
|
||||
super_sliver_list:
|
||||
git:
|
||||
url: https://github.com/bggRGjQaUbCoE/super_sliver_list.git
|
||||
|
||||
Reference in New Issue
Block a user