mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-13 02:14:31 +01:00
fix(App Selector): Unable to select APK from storage when asked to (#1513)
This commit is contained in:
parent
4e9f3fe1dc
commit
78978276c4
1 changed files with 4 additions and 4 deletions
|
@ -197,7 +197,7 @@ class AppSelectorViewModel extends BaseViewModel {
|
||||||
Future showSelectFromStorageDialog(BuildContext context) async {
|
Future showSelectFromStorageDialog(BuildContext context) async {
|
||||||
return showDialog(
|
return showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => SimpleDialog(
|
builder: (innerContext) => SimpleDialog(
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
contentPadding:
|
contentPadding:
|
||||||
const EdgeInsets.symmetric(horizontal: 20, vertical: 20),
|
const EdgeInsets.symmetric(horizontal: 20, vertical: 20),
|
||||||
|
@ -206,7 +206,7 @@ class AppSelectorViewModel extends BaseViewModel {
|
||||||
Icon(
|
Icon(
|
||||||
Icons.block,
|
Icons.block,
|
||||||
size: 28,
|
size: 28,
|
||||||
color: Theme.of(context).colorScheme.primary,
|
color: Theme.of(innerContext).colorScheme.primary,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
I18nText(
|
I18nText(
|
||||||
|
@ -234,7 +234,7 @@ class AppSelectorViewModel extends BaseViewModel {
|
||||||
const SizedBox(height: 30),
|
const SizedBox(height: 30),
|
||||||
CustomMaterialButton(
|
CustomMaterialButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
Navigator.pop(context);
|
Navigator.pop(innerContext);
|
||||||
await selectAppFromStorage(context);
|
await selectAppFromStorage(context);
|
||||||
},
|
},
|
||||||
label: Row(
|
label: Row(
|
||||||
|
@ -250,7 +250,7 @@ class AppSelectorViewModel extends BaseViewModel {
|
||||||
CustomMaterialButton(
|
CustomMaterialButton(
|
||||||
isFilled: false,
|
isFilled: false,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pop(context);
|
Navigator.pop(innerContext);
|
||||||
},
|
},
|
||||||
label: Row(
|
label: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
|
Loading…
Reference in a new issue