mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-26 13:25:49 +08:00
refactor device orientation
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -78,12 +78,12 @@ abstract final class ImageUtils {
|
||||
}
|
||||
}
|
||||
|
||||
static Future<bool> checkPermissionDependOnSdkInt() async {
|
||||
static Future<bool> checkPermissionDependOnSdkInt() {
|
||||
if (Platform.isAndroid) {
|
||||
if (await Utils.sdkInt < 29) {
|
||||
if (Utils.sdkInt < 29) {
|
||||
return requestPer();
|
||||
} else {
|
||||
return true;
|
||||
return Future.syncValue(true);
|
||||
}
|
||||
}
|
||||
return requestPer();
|
||||
|
||||
Reference in New Issue
Block a user