(Context context)
| 128 | } |
| 129 | |
| 130 | @NonNull |
| 131 | private ExecutorService getExecutor(Context context) { |
| 132 | if (wl == null) { |
| 133 | PowerManager pm = Helper.getSystemService(context, PowerManager.class); |
| 134 | wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, BuildConfig.APPLICATION_ID + ":task"); |
| 135 | } |
| 136 | |
| 137 | if (localExecutor != null) |
| 138 | return localExecutor; |
| 139 | |
| 140 | return globalExecutor; |
| 141 | } |
| 142 | |
| 143 | @NonNull |
| 144 | private Handler getHandler() { |
no test coverage detected