mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: view note
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -26,7 +26,11 @@ class FavNoteItem extends StatelessWidget {
|
||||
onSelect();
|
||||
return;
|
||||
}
|
||||
Utils.handleWebview(item['web_url'], inApp: true);
|
||||
Utils.handleWebview(
|
||||
item['web_url'],
|
||||
inApp: true,
|
||||
parameters: {'uaType': 'android'},
|
||||
);
|
||||
},
|
||||
onLongPress: () {
|
||||
if (!ctr.enableMultiSelect.value) {
|
||||
|
||||
@@ -787,6 +787,7 @@ class Utils {
|
||||
String url, {
|
||||
bool off = false,
|
||||
bool inApp = false,
|
||||
Map? parameters,
|
||||
}) async {
|
||||
if (inApp.not && GStorage.openInBrowser) {
|
||||
if ((await PiliScheme.routePushFromUrl(url, selfHandle: true)).not) {
|
||||
@@ -796,7 +797,10 @@ class Utils {
|
||||
if (off) {
|
||||
Get.offNamed(
|
||||
'/webview',
|
||||
parameters: {'url': url},
|
||||
parameters: {
|
||||
'url': url,
|
||||
if (parameters != null) ...parameters,
|
||||
},
|
||||
);
|
||||
} else {
|
||||
PiliScheme.routePushFromUrl(url);
|
||||
|
||||
Reference in New Issue
Block a user