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

Commit e0dbb510 authored by Doris Liu's avatar Doris Liu Committed by Android Git Automerger
Browse files

am 9fb962fe: Merge "Change the order of exposure compensation" into gb-ub-photos-bryce

* commit '9fb962fe':
  Change the order of exposure compensation
parents b2379a3c 9fb962fe
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -255,12 +255,12 @@ public class CameraSettings {
        TypedArray iconIds = mContext.getResources().obtainTypedArray(
        TypedArray iconIds = mContext.getResources().obtainTypedArray(
                R.array.pref_camera_exposure_icons);
                R.array.pref_camera_exposure_icons);
        for (int i = minValue; i <= maxValue; ++i) {
        for (int i = minValue; i <= maxValue; ++i) {
            entryValues[maxValue - i] = Integer.toString(Math.round(i / step));
            entryValues[i - minValue] = Integer.toString(Math.round(i / step));
            StringBuilder builder = new StringBuilder();
            StringBuilder builder = new StringBuilder();
            if (i > 0) builder.append('+');
            if (i > 0) builder.append('+');
            entries[maxValue - i] = builder.append(i).toString();
            entries[i - minValue] = builder.append(i).toString();
            labels[maxValue - i] = explabel + " " + builder.toString();
            labels[i - minValue] = explabel + " " + builder.toString();
            icons[maxValue - i] = iconIds.getResourceId(3 + i, 0);
            icons[i - minValue] = iconIds.getResourceId(3 + i, 0);
        }
        }
        exposure.setUseSingleIcon(true);
        exposure.setUseSingleIcon(true);
        exposure.setEntries(entries);
        exposure.setEntries(entries);