mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-11 13:46:17 +00:00
fix: Lack of connectivity toast not showing due to incorrect comparison
Signed-off-by: validcube <pun.butrach@gmail.com>
This commit is contained in:
@@ -85,7 +85,7 @@ class HomeViewModel extends BaseViewModel {
|
|||||||
AndroidFlutterLocalNotificationsPlugin>()
|
AndroidFlutterLocalNotificationsPlugin>()
|
||||||
?.requestNotificationsPermission();
|
?.requestNotificationsPermission();
|
||||||
final bool isConnected =
|
final bool isConnected =
|
||||||
await Connectivity().checkConnectivity() != ConnectivityResult.none;
|
await Connectivity().checkConnectivity() != [ConnectivityResult.none];
|
||||||
if (!isConnected) {
|
if (!isConnected) {
|
||||||
_toast.showBottom(t.homeView.noConnection);
|
_toast.showBottom(t.homeView.noConnection);
|
||||||
}
|
}
|
||||||
@@ -106,7 +106,8 @@ class HomeViewModel extends BaseViewModel {
|
|||||||
void navigateToAppInfo(PatchedApplication app, bool isLastPatchedApp) {
|
void navigateToAppInfo(PatchedApplication app, bool isLastPatchedApp) {
|
||||||
_navigationService.navigateTo(
|
_navigationService.navigateTo(
|
||||||
Routes.appInfoView,
|
Routes.appInfoView,
|
||||||
arguments: AppInfoViewArguments(app: app, isLastPatchedApp: isLastPatchedApp),
|
arguments:
|
||||||
|
AppInfoViewArguments(app: app, isLastPatchedApp: isLastPatchedApp),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user