mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-13 13:26:43 +02:00
App-wide "pretend to be GPlay" option (#1859)
This commit is contained in:
@ -48,7 +48,7 @@ class SettingsProvider with ChangeNotifier {
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
bool get useShizuku{
|
||||
bool get useShizuku {
|
||||
return prefs?.getBool('useShizuku') ?? false;
|
||||
}
|
||||
|
||||
@ -69,8 +69,7 @@ class SettingsProvider with ChangeNotifier {
|
||||
|
||||
Color get themeColor {
|
||||
int? colorCode = prefs?.getInt('themeColor');
|
||||
return (colorCode != null) ?
|
||||
Color(colorCode) : obtainiumThemeColor;
|
||||
return (colorCode != null) ? Color(colorCode) : obtainiumThemeColor;
|
||||
}
|
||||
|
||||
set themeColor(Color themeColor) {
|
||||
@ -469,4 +468,13 @@ class SettingsProvider with ChangeNotifier {
|
||||
prefs?.setBool('beforeNewInstallsShareToAppVerifier', val);
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
bool get shizukuPretendToBeGooglePlay {
|
||||
return prefs?.getBool('shizukuPretendToBeGooglePlay') ?? false;
|
||||
}
|
||||
|
||||
set shizukuPretendToBeGooglePlay(bool val) {
|
||||
prefs?.setBool('shizukuPretendToBeGooglePlay', val);
|
||||
notifyListeners();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user