mirror of
https://github.com/status-im/react-native.git
synced 2025-01-13 19:15:05 +00:00
Fix dev loading indicator
Reviewed By: AaaChiuuu Differential Revision: D5277176 fbshipit-source-id: 04a8af068310490957e8bc1e690e2cdb927e4dff
This commit is contained in:
parent
3ba8e6a901
commit
e82ceb24eb
@ -155,8 +155,8 @@ public class DevLoadingViewController {
|
||||
}
|
||||
|
||||
private boolean isWindowPermissionGranted() {
|
||||
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.M &&
|
||||
(Settings.canDrawOverlays(mContext) ||
|
||||
PackageManager.PERMISSION_GRANTED == mContext.checkSelfPermission(SYSTEM_ALERT_WINDOW));
|
||||
return Build.VERSION.SDK_INT < Build.VERSION_CODES.M ||
|
||||
Settings.canDrawOverlays(mContext) ||
|
||||
PackageManager.PERMISSION_GRANTED == mContext.checkSelfPermission(SYSTEM_ALERT_WINDOW);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user