Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad6c866c authored by Mark Harman's avatar Mark Harman
Browse files

Fix warnings.

parent 0a15f223
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2082,7 +2082,7 @@ public class HDRProcessor {
                    Log.d(TAG, "    " + i + ": " + luminanceInfos[i]);
                }
            }
            Collections.sort(bitmapInfos, new Comparator<BitmapInfo>() {
            Collections.sort(bitmapInfos, new Comparator<>() {
                @Override
                public int compare(BitmapInfo o1, BitmapInfo o2) {
                    // important to use the code in LuminanceInfo.compareTo(), as that's also tested via the unit test
+1 −1
Original line number Diff line number Diff line
@@ -2585,7 +2585,7 @@ public class MainActivity extends AppCompatActivity implements PreferenceFragmen
                            Log.d(TAG, "clickedSwitchMultiCamera: time after getDescription: " + (System.currentTimeMillis() - debug_time));
                    }
                    {
                        Collections.sort(physical_cameras, new Comparator<PhysicalCamera>() {
                        Collections.sort(physical_cameras, new Comparator<>() {
                            @Override
                            public int compare(PhysicalCamera o1, PhysicalCamera o2) {
                                float diff = o2.view_angle.getWidth() - o1.view_angle.getWidth();
+1 −1
Original line number Diff line number Diff line
@@ -229,7 +229,7 @@ public class ArraySeekBarPreference extends DialogPreference {
        }

        public static final Parcelable.Creator<SavedState> CREATOR =
                new Parcelable.Creator<SavedState>() {
                new Parcelable.Creator<>() {
                    public SavedState createFromParcel(Parcel in) {
                        return new SavedState(in);
                    }
+1 −1
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ public class MyEditTextPreference extends DialogPreference {
        }

        public static final Parcelable.Creator<SavedState> CREATOR =
                new Parcelable.Creator<SavedState>() {
                new Parcelable.Creator<>() {
                    public SavedState createFromParcel(Parcel in) {
                        return new SavedState(in);
                    }