Fix dev loading indicator

Reviewed By: AaaChiuuu

Differential Revision: D5277176

fbshipit-source-id: 04a8af068310490957e8bc1e690e2cdb927e4dff
This commit is contained in:
Andrew Y. Chen 2017-06-19 13:14:58 -07:00 committed by Facebook Github Bot
parent 3ba8e6a901
commit e82ceb24eb

View File

@ -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);
}
}