Apply Quick Fixes suggested by Android Studio

This commit is contained in:
Manuel Fuhr 2021-10-19 06:06:34 +02:00
parent 89ef74f95b
commit de7dd71a94
2 changed files with 8 additions and 46 deletions

View file

@ -28,7 +28,7 @@ public class BInstallerActivity extends Activity {
private PowerManager mPowerManager;
private WakeLock mWakeLock;
private DownloadReceiver myReceiver;
private final Set<Integer> dialogIds = new HashSet<Integer>();
private final Set<Integer> dialogIds = new HashSet<>();
/**
* Called when the activity is first created.
@ -120,10 +120,10 @@ public class BInstallerActivity extends Activity {
}
private void showNewDialog(int id) {
if (dialogIds.contains(Integer.valueOf(id))) {
if (dialogIds.contains(id)) {
removeDialog(id);
}
dialogIds.add(Integer.valueOf(id));
dialogIds.add(id);
showDialog(id);
}