File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/src/main/java/com/example/deco3801project Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,8 @@ protected void onCreate(Bundle savedInstanceState) {
155155
156156 // Disable the seekBar
157157 seekBar .setEnabled (false );
158-
158+ seekBar .setProgress ((int )calculateRemainingPercentage ());
159+ waveLoadingView .setProgressValue (seekBar .getProgress ());
159160 // Make sure the WaveLoadingView's water level changes accordingly
160161 seekBar .setOnSeekBarChangeListener (new SeekBar .OnSeekBarChangeListener () {
161162 @ Override
@@ -173,7 +174,6 @@ public void onStopTrackingTouch(SeekBar seekBar) {
173174
174175 }
175176 });
176-
177177 float interval = pref .getFloat ("interval" , (float ) 1.0 );
178178 int windowStart = pref .getInt ("windowStart" , 8 );
179179 int windowEnd = pref .getInt ("windowEnd" , 20 );
You can’t perform that action at this time.
0 commit comments