|
@@ -1,28 +1,11 @@
|
1
|
1
|
package com.github.wusuopu.RNIdle;
|
2
|
2
|
|
3
|
3
|
import android.app.Activity;
|
4
|
|
-import android.content.BroadcastReceiver;
|
5
|
|
-import android.content.Context;
|
6
|
|
-import android.content.Intent;
|
7
|
|
-import android.content.IntentFilter;
|
8
|
|
-import android.content.pm.ActivityInfo;
|
9
|
|
-import android.content.res.Configuration;
|
10
|
|
-import android.util.Log;
|
|
4
|
+import android.view.WindowManager;
|
11
|
5
|
|
12
|
|
-import com.facebook.common.logging.FLog;
|
13
|
|
-import com.facebook.react.bridge.Arguments;
|
14
|
|
-import com.facebook.react.bridge.Callback;
|
15
|
6
|
import com.facebook.react.bridge.ReactApplicationContext;
|
16
|
7
|
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
17
|
8
|
import com.facebook.react.bridge.ReactMethod;
|
18
|
|
-import com.facebook.react.bridge.WritableMap;
|
19
|
|
-import com.facebook.react.common.ReactConstants;
|
20
|
|
-import com.facebook.react.modules.core.DeviceEventManagerModule;
|
21
|
|
-
|
22
|
|
-import java.util.HashMap;
|
23
|
|
-import java.util.Map;
|
24
|
|
-
|
25
|
|
-import javax.annotation.Nullable;
|
26
|
9
|
|
27
|
10
|
public class RNIdleModule extends ReactContextBaseJavaModule {
|
28
|
11
|
public RNIdleModule(ReactApplicationContext reactContext) {
|