mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 11:01:23 +01:00
use Objects.equals
This commit is contained in:
@@ -50,6 +50,7 @@ import android.widget.TimePicker;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
@@ -254,7 +255,7 @@ public class FragmentOptions extends FragmentBase implements SharedPreferences.O
|
||||
@Override
|
||||
public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id) {
|
||||
Integer prev = (Integer) adapterView.getTag();
|
||||
if (prev == null || !prev.equals(position)) {
|
||||
if (!Objects.equals(prev, position)) {
|
||||
adapterView.setTag(position);
|
||||
|
||||
int[] values = getResources().getIntArray(R.array.downloadValues);
|
||||
|
||||
Reference in New Issue
Block a user