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

Commit f268c796 authored by Shareef Ali's avatar Shareef Ali Committed by Adnan Begovic
Browse files

Setting: LiveDisplay: fix percentage not showing when the dialog shows up.

Change-Id: Ifee1b49eb9c39e6110a7bff19a34b4734f962afd
parent 2d5ce26e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -107,6 +107,8 @@ public class DisplayColor extends DialogPreference {
            TextView value = (TextView) view.findViewById(SEEKBAR_VALUE_ID[i]);
            mSeekBars[i] = new ColorSeekBar(seekBar, value, i);
            mSeekBars[i].mSeekBar.setProgressFloat(mCurrentColors[i]);
            int percent = Math.round(100F * mCurrentColors[i]);
            value.setText(String.format("%d%%", percent));
        }
    }