Permalink
Browse files

Fix dev loading indicator

Reviewed By: AaaChiuuu

Differential Revision: D5277176

fbshipit-source-id: 04a8af068310490957e8bc1e690e2cdb927e4dff
  • Loading branch information...
ayc1 authored and facebook-github-bot committed Jun 19, 2017
1 parent 3ba8e6a commit e82ceb24ebc9579bd71a14d340da2eb9ad835df6
@@ -155,8 +155,8 @@ private void setVisible(boolean visible) {
}
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);
}
}

0 comments on commit e82ceb2

Please sign in to comment.