fix: center notification icon and fix reload of Patches Selector View

This commit is contained in:
Alberto Ponces 2022-08-18 00:33:04 +01:00
parent 492aa848ff
commit 6153e1f9e8
3 changed files with 28 additions and 25 deletions

View file

@ -1,33 +1,33 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:name="vector"
android:width="500dp"
android:height="500dp"
android:viewportWidth="500"
android:viewportHeight="500">
<group>
<clip-path
android:pathData="M-178.57,-178.57l857.14,0l0,857.14l-857.14,0z"/>
<path
android:pathData="m168.25,119.79c24.4,-19.54 54.46,-32.33 87.3,-35.59l0,0 0,0.33 0,33.21c-21.87,2.69 -41.82,10.53 -58.8,22.17zM170.8,381.13c23.72,18.25 52.71,30.31 84.75,33.51l0,-33.21c-20.61,-2.43 -39.71,-9.62 -56.24,-20.42zM288.76,84.7l0,33.21c23.75,3.32 46.16,12.95 64.76,27.9l23.75,-24.57c-25.24,-20.92 -56.13,-33.38 -88.51,-36.53zM353.52,355.53c-18.76,14.61 -41.18,24.08 -64.76,27.06l0,33.21c32.55,-3.49 63.43,-16.61 88.51,-37.53zM384.16,324.48 L458.88,249.75L400.76,249.75L400.76,183.33l-33.21,0l0,66.42L309.44,249.75Z"
android:fillColor="#000"
android:fillType="evenOdd"/>
<group>
<clip-path
android:pathData="m168.25,119.79c24.4,-19.54 54.46,-32.33 87.3,-35.59l0,0 0,0.33 0,33.21c-21.87,2.69 -41.82,10.53 -58.8,22.17zM170.8,381.13c23.72,18.25 52.71,30.31 84.75,33.51l0,-33.21c-20.61,-2.43 -39.71,-9.62 -56.24,-20.42zM288.76,84.7l0,33.21c23.75,3.32 46.16,12.95 64.76,27.9l23.75,-24.57c-25.24,-20.92 -56.13,-33.38 -88.51,-36.53zM353.52,355.53c-18.76,14.61 -41.18,24.08 -64.76,27.06l0,33.21c32.55,-3.49 63.43,-16.61 88.51,-37.53zM384.16,324.48 L458.88,249.75L400.76,249.75L400.76,183.33l-33.21,0l0,66.42L309.44,249.75Z"/>
<group>
<group android:name="wrapper">
<clip-path
android:pathData="M500,500L0,500L0,0l500,0z"/>
<group>
<clip-path
android:pathData="M500,500L0,500L0,0l500,0z"/>
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"/>
<group android:name="group">
<path
android:name="path"
android:pathData="M 174.3 119.8 C 198.6 100.3 228.7 87.5 261.6 84.2 L 261.6 117.7 C 239.7 120.4 219.7 128.3 202.7 139.9 Z M 176.9 381.1 C 200.6 399.4 229.6 411.5 261.7 414.7 L 261.7 381.4 C 241 379 221.9 371.8 205.4 361 Z M 294.9 84.7 L 294.9 117.9 C 318.6 121.2 341 130.9 359.6 145.8 L 383.4 121.2 C 358.1 100.3 327.2 87.9 294.9 84.7 Z M 359.6 355.5 C 340.9 370.1 318.4 379.6 294.9 382.6 L 294.9 415.8 C 327.4 412.3 358.3 399.2 383.4 378.3 Z M 390.2 324.4 L 464.9 249.7 L 406.8 249.7 L 406.8 183.3 L 373.6 183.3 L 373.6 249.7 L 315.5 249.7 Z"
android:fillColor="#000"
android:strokeWidth="1"
android:fillType="evenOdd"/>
</group>
</group>
<group android:name="wrapper_1">
<clip-path
android:name="cp6"
android:pathData="M -178.57 -178.57 L 678.57 -178.57 L 678.57 678.57 L -178.57 678.57 Z"/>
<group android:name="group_1">
<path
android:name="path_1"
android:pathData="M 36 386.3 L 36 116.4 C 36 87.6 55.1 77.7 78.7 94.3 L 258.5 221.2 C 282.1 237.9 282.1 264.9 258.5 281.5 L 78.7 408.4 C 55.1 425 36 415.1 36 386.3 Z"
android:fillColor="#000"
android:strokeWidth="1"/>
</group>
</group>
<group>
<clip-path
android:pathData="M500,500L0,500L0,0l500,0z"/>
</group>
</group>
<path
android:pathData="m72.7,408.42 l179.8,-126.92c23.56,-16.64 23.56,-43.64 0,-60.28L72.7,94.31c-23.56,-16.63 -42.7,-6.72 -42.7,22.12l0,269.86c0,28.84 19.13,38.76 42.7,22.12z"
android:fillColor="#000"/>
</group>
</vector>

View file

@ -45,6 +45,7 @@ class AppSelectorViewModel extends BaseViewModel {
);
locator<AppSelectorViewModel>().selectedApp = app;
locator<PatchesSelectorViewModel>().selectedPatches.clear();
locator<PatchesSelectorViewModel>().notifyListeners();
locator<PatcherViewModel>().notifyListeners();
}
@ -74,6 +75,7 @@ class AppSelectorViewModel extends BaseViewModel {
);
locator<AppSelectorViewModel>().selectedApp = app;
locator<PatchesSelectorViewModel>().selectedPatches.clear();
locator<PatchesSelectorViewModel>().notifyListeners();
locator<PatcherViewModel>().notifyListeners();
}
}

View file

@ -143,6 +143,7 @@ class InstallerViewModel extends BaseViewModel {
locator<PatcherAPI>().cleanPatcher();
locator<AppSelectorViewModel>().selectedApp = null;
locator<PatchesSelectorViewModel>().selectedPatches.clear();
locator<PatchesSelectorViewModel>().notifyListeners();
locator<PatcherViewModel>().notifyListeners();
}