From c37ffdb0f5c372549aa551793cfa82e1d952d360 Mon Sep 17 00:00:00 2001 From: perol Date: Sun, 20 Aug 2023 23:02:30 +0800 Subject: [PATCH] android 0.9.28 --- android/app/build.gradle | 4 ++-- lib/constants.dart | 2 +- lib/page/hello/android_hello_page.dart | 10 ++++++++++ lib/page/search/suggest/search_suggestion_page.dart | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index cc9f27482..9bae18fbf 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -81,8 +81,8 @@ android { applicationId packageName minSdkVersion 21 targetSdkVersion 33 - versionCode 10009273 - versionName "0.9.28 X" + versionCode 10009280 + versionName "0.9.28 li" ndk { abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86_64' } } compileOptions { diff --git a/lib/constants.dart b/lib/constants.dart index ba969c61a..67c3a5821 100644 --- a/lib/constants.dart +++ b/lib/constants.dart @@ -17,7 +17,7 @@ import 'dart:io'; class Constants { - static String tagName = "0.9.27"; + static String tagName = "0.9.28"; static const isGooglePlay = bool.fromEnvironment("IS_GOOGLEPLAY", defaultValue: false); static int type = 0; diff --git a/lib/page/hello/android_hello_page.dart b/lib/page/hello/android_hello_page.dart index f30561e14..c09d9ac2a 100644 --- a/lib/page/hello/android_hello_page.dart +++ b/lib/page/hello/android_hello_page.dart @@ -37,6 +37,7 @@ import 'package:pixez/page/hello/setting/setting_page.dart'; import 'package:pixez/page/login/login_page.dart'; import 'package:pixez/page/saucenao/saucenao_page.dart'; import 'package:pixez/page/search/search_page.dart'; +import 'package:pixez/page/search/suggest/search_suggestion_page.dart'; import 'package:receive_sharing_intent/receive_sharing_intent.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:uni_links2/uni_links.dart'; @@ -312,6 +313,15 @@ class _AndroidHelloPageState extends State { VoidCallback? _LinkCloser = null; _showChromeLink(String link) { + final numId = int.tryParse(link); + if (numId != null) { + Leader.push( + context, + SearchSuggestionPage( + preword: link, + )); + return; + } Uri? uri = Uri.tryParse(link); if (uri == null) return; if (uri.scheme == "pixiv") { diff --git a/lib/page/search/suggest/search_suggestion_page.dart b/lib/page/search/suggest/search_suggestion_page.dart index 5edcc888f..a1de8d2e4 100644 --- a/lib/page/search/suggest/search_suggestion_page.dart +++ b/lib/page/search/suggest/search_suggestion_page.dart @@ -14,7 +14,6 @@ * */ - import 'package:bot_toast/bot_toast.dart'; import 'package:flutter/material.dart'; import 'package:flutter_mobx/flutter_mobx.dart'; @@ -46,6 +45,7 @@ class _SearchSuggestionPageState extends State { @override void initState() { + idV = widget.preword != null && int.tryParse(widget.preword!) != null; _suggestionStore = SuggestionStore(); _sauceStore = SauceStore(); _sauceStore.observableStream.listen((event) {