From 6153e1f9e8986e8833ad71264388583007b7e6b7 Mon Sep 17 00:00:00 2001 From: Alberto Ponces Date: Thu, 18 Aug 2022 00:33:04 +0100 Subject: [PATCH] fix: center notification icon and fix reload of Patches Selector View --- .../src/main/res/drawable/ic_notification.xml | 50 +++++++++---------- .../app_selector/app_selector_viewmodel.dart | 2 + .../views/installer/installer_viewmodel.dart | 1 + 3 files changed, 28 insertions(+), 25 deletions(-) diff --git a/android/app/src/main/res/drawable/ic_notification.xml b/android/app/src/main/res/drawable/ic_notification.xml index 17e031d9..d8c66e8a 100644 --- a/android/app/src/main/res/drawable/ic_notification.xml +++ b/android/app/src/main/res/drawable/ic_notification.xml @@ -1,33 +1,33 @@ - - - - - - - + - - + android:name="cp1" + android:pathData="M -178.57 -178.57 L 678.57 -178.57 L 678.57 678.57 L -178.57 678.57 Z"/> + + + + + + + + - - - - - - diff --git a/lib/ui/views/app_selector/app_selector_viewmodel.dart b/lib/ui/views/app_selector/app_selector_viewmodel.dart index 255a0b25..cc7b1a8f 100644 --- a/lib/ui/views/app_selector/app_selector_viewmodel.dart +++ b/lib/ui/views/app_selector/app_selector_viewmodel.dart @@ -45,6 +45,7 @@ class AppSelectorViewModel extends BaseViewModel { ); locator().selectedApp = app; locator().selectedPatches.clear(); + locator().notifyListeners(); locator().notifyListeners(); } @@ -74,6 +75,7 @@ class AppSelectorViewModel extends BaseViewModel { ); locator().selectedApp = app; locator().selectedPatches.clear(); + locator().notifyListeners(); locator().notifyListeners(); } } diff --git a/lib/ui/views/installer/installer_viewmodel.dart b/lib/ui/views/installer/installer_viewmodel.dart index db47a4cb..5f66e2f9 100644 --- a/lib/ui/views/installer/installer_viewmodel.dart +++ b/lib/ui/views/installer/installer_viewmodel.dart @@ -143,6 +143,7 @@ class InstallerViewModel extends BaseViewModel { locator().cleanPatcher(); locator().selectedApp = null; locator().selectedPatches.clear(); + locator().notifyListeners(); locator().notifyListeners(); }