Skip to content

Commit 5197672

Browse files
committed
fix get app brightness hanging
c19354837#149
1 parent 4a52d54 commit 5197672

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

android/src/main/java/com/ninty/system/setting/SystemSetting.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ public void run() {
248248
public void getAppBrightness(Promise promise) {
249249
final Activity curActivity = getCurrentActivity();
250250
if (curActivity == null) {
251+
promise.reject("-1", "cannot get app brightness: current activity is null");
251252
return;
252253
}
253254
try {

0 commit comments

Comments
 (0)