Compare commits

..

5 Commits

Author SHA1 Message Date
dom
24769e144f fix #2087
Signed-off-by: dom <githubaccount56556@proton.me>
2026-05-13 13:28:43 +08:00
dom
50875421a5 tweaks
Signed-off-by: dom <githubaccount56556@proton.me>
2026-05-12 12:50:05 +08:00
dom
0581d8f7d4 upgrade deps
Signed-off-by: dom <githubaccount56556@proton.me>
2026-05-12 11:51:16 +08:00
dom
be9f39d043 remove longpress threshold on main
Closes #2075

Signed-off-by: dom <githubaccount56556@proton.me>
2026-05-12 11:38:25 +08:00
uHioVK
034482362d fix(dynamics): disable shadow ban check for scheduled posts (#2059) 2026-05-11 10:09:23 +08:00
6 changed files with 29 additions and 22 deletions

View File

@@ -22,8 +22,6 @@ import com.ryanheise.audioservice.AudioServiceActivity
import io.flutter.embedding.engine.FlutterEngine import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugin.common.MethodChannel import io.flutter.plugin.common.MethodChannel
import kotlin.math.roundToInt import kotlin.math.roundToInt
import kotlin.system.exitProcess
import java.io.File
class MainActivity : AudioServiceActivity() { class MainActivity : AudioServiceActivity() {
private lateinit var methodChannel: MethodChannel private lateinit var methodChannel: MethodChannel
@@ -35,7 +33,7 @@ class MainActivity : AudioServiceActivity() {
methodChannel = MethodChannel(flutterEngine.dartExecutor.binaryMessenger, "PiliPlus") methodChannel = MethodChannel(flutterEngine.dartExecutor.binaryMessenger, "PiliPlus")
methodChannel.setMethodCallHandler { call, result -> methodChannel.setMethodCallHandler { call, result ->
when (call.method) { when (call.method) {
"back" -> back(); "back" -> back()
"biliSendCommAntifraud" -> { "biliSendCommAntifraud" -> {
try { try {
@@ -50,7 +48,7 @@ class MainActivity : AudioServiceActivity() {
val pictures = call.argument<String?>("pictures") val pictures = call.argument<String?>("pictures")
val sourceId = call.argument<String>("source_id") ?: "" val sourceId = call.argument<String>("source_id") ?: ""
val uid = call.argument<Number>("uid") ?: 0L 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 { val intent = Intent().apply {
component = ComponentName( component = ComponentName(
@@ -170,7 +168,7 @@ class MainActivity : AudioServiceActivity() {
pendingIntent.intentSender pendingIntent.intentSender
) )
} }
} catch (e: Exception) { } catch (_: Exception) {
} }
} }
} }
@@ -219,7 +217,7 @@ class MainActivity : AudioServiceActivity() {
"maxHeight" to (realSizePoint.y / density).roundToInt(), "maxHeight" to (realSizePoint.y / density).roundToInt(),
) )
} }
} catch (e: Exception) { } catch (_: Exception) {
return null return null
} }
} }
@@ -243,7 +241,7 @@ class MainActivity : AudioServiceActivity() {
try { try {
isFoldable = isFoldable =
packageManager.hasSystemFeature(PackageManager.FEATURE_SENSOR_HINGE_ANGLE) packageManager.hasSystemFeature(PackageManager.FEATURE_SENSOR_HINGE_ANGLE)
} catch (e: Exception) { } catch (_: Exception) {
} }
} }
} }

View File

@@ -150,6 +150,14 @@ class ImmediateTapGestureRecognizer extends OneSequenceGestureRecognizer {
_initialPosition = null; _initialPosition = null;
} }
@override
void resolve(GestureDisposition disposition) {
if (_wonArena && disposition == GestureDisposition.rejected) {
_cancelGesture('spontaneous');
}
super.resolve(disposition);
}
@override @override
String get debugDescription => 'immediate tap'; String get debugDescription => 'immediate tap';

View File

@@ -801,7 +801,7 @@ class _CreateDynPanelState extends CommonRichTextPubPageState<CreateDynPanel> {
SmartDialog.showToast('发布成功'); SmartDialog.showToast('发布成功');
final id = response?['dyn_id']; final id = response?['dyn_id'];
RequestUtils.insertCreatedDyn(id); RequestUtils.insertCreatedDyn(id);
if (!_isPrivate.value) { if (!_isPrivate.value && _publishTime.value == null) {
RequestUtils.checkCreatedDyn( RequestUtils.checkCreatedDyn(
id: id, id: id,
dynText: editController.rawText, dynText: editController.rawText,

View File

@@ -1245,14 +1245,11 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
if (PlatformUtils.isMobile) { if (PlatformUtils.isMobile) {
_tapGestureRecognizer.addPointer(event); _tapGestureRecognizer.addPointer(event);
if (controlsUnlock) { if (controlsUnlock) {
final flag = _isPositionAllowed(event.localPosition);
if (!plPlayerController.isLive) { if (!plPlayerController.isLive) {
_doubleTapGestureRecognizer.addPointer(event); _doubleTapGestureRecognizer.addPointer(event);
if (flag) { longPressRecognizer.addPointer(event);
longPressRecognizer.addPointer(event);
}
} }
if (flag) { if (_isPositionAllowed(event.localPosition)) {
_scaleGestureRecognizer.addPointer(event); _scaleGestureRecognizer.addPointer(event);
} }
} }

View File

@@ -528,10 +528,11 @@ packages:
file_picker: file_picker:
dependency: "direct main" dependency: "direct main"
description: description:
name: file_picker path: "."
sha256: "1d4afa261268e59863af47b9f9dd9a230502d4c702b9d9183353646fe6d5b6e1" ref: dev
url: "https://pub.dev" resolved-ref: "5d269611e493420302aeba4d8305c1d44a67281f"
source: hosted url: "https://github.com/bggRGjQaUbCoE/flutter_file_picker.git"
source: git
version: "12.0.0-beta.1" version: "12.0.0-beta.1"
file_selector_linux: file_selector_linux:
dependency: transitive dependency: transitive
@@ -1938,10 +1939,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: vector_graphics name: vector_graphics
sha256: "6409a25046024f0f8c5d8a59fec314081e81f9d436b66ca4015a8b49772bf445" sha256: "4d35a36400983c3457c289d4d553b5308f506ea84f7e51c7a564651b5525209a"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.2.0" version: "1.2.1"
vector_graphics_codec: vector_graphics_codec:
dependency: transitive dependency: transitive
description: description:
@@ -1954,10 +1955,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: vector_graphics_compiler name: vector_graphics_compiler
sha256: "06f0c50f88a1a020f95138dcc14ef4d5a039ced3f89b386209e6763dfa2cefa0" sha256: "98e7e94de127b46a86ef46197fff84ff99f3d3b80a708390d717ad731efef598"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.2.1" version: "1.2.2"
vector_math: vector_math:
dependency: "direct main" dependency: "direct main"
description: description:

View File

@@ -224,7 +224,10 @@ dependencies:
path: packages/window_manager path: packages/window_manager
ref: main ref: main
tray_manager: ^0.5.1 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: super_sliver_list:
git: git:
url: https://github.com/bggRGjQaUbCoE/super_sliver_list.git url: https://github.com/bggRGjQaUbCoE/super_sliver_list.git