We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public static void deactivate(@NotNull final Activity activity, final String tag) { ^ symbol: class NotNull location: class IdleTimerManager
public static void activate(@NotNull final Activity activity, final String tag) { if (tags.isEmpty()) { activity.runOnUiThread(() -> { activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); }); } tags.add((tag == null ? "" : tag)); }
public static void deactivate(@NotNull final Activity activity, final String tag) { if (tags.size() == 1 && tags.contains((tag))) { activity.runOnUiThread(() -> { activity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); }); } tags.remove((tag == null ? "" : tag)); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
public static void deactivate(@NotNull final Activity activity, final String tag) {
^
symbol: class NotNull
location: class IdleTimerManager
error in this code in IdleTimerManager.java
public static void activate(@NotNull final Activity activity, final String tag) {
if (tags.isEmpty()) {
activity.runOnUiThread(() -> {
activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
});
}
tags.add((tag == null ? "" : tag));
}
The text was updated successfully, but these errors were encountered: