Skip to content

Commit

Permalink
fix get app brightness hanging
Browse files Browse the repository at this point in the history
  • Loading branch information
timok06 committed Oct 17, 2022
1 parent 4a52d54 commit 5197672
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ public void run() {
public void getAppBrightness(Promise promise) {
final Activity curActivity = getCurrentActivity();
if (curActivity == null) {
promise.reject("-1", "cannot get app brightness: current activity is null");
return;
}
try {
Expand Down

0 comments on commit 5197672

Please sign in to comment.