Merge pull request #5632 from JonOfUs/fix-sleep-timer-dialog-setup

Don't show 'Set SleepTimer' and 'Disable SleepTimer' at the same time
This commit is contained in:
ByteHamster 2022-01-02 17:28:46 +01:00 committed by GitHub
commit 9e42e103a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -73,6 +73,7 @@ public class SleepTimerDialog extends DialogFragment {
spTimeUnit = content.findViewById(R.id.spTimeUnit); spTimeUnit = content.findViewById(R.id.spTimeUnit);
timeSetup = content.findViewById(R.id.timeSetup); timeSetup = content.findViewById(R.id.timeSetup);
timeDisplay = content.findViewById(R.id.timeDisplay); timeDisplay = content.findViewById(R.id.timeDisplay);
timeDisplay.setVisibility(View.GONE);
time = content.findViewById(R.id.time); time = content.findViewById(R.id.time);
Button extendSleepFiveMinutesButton = content.findViewById(R.id.extendSleepFiveMinutesButton); Button extendSleepFiveMinutesButton = content.findViewById(R.id.extendSleepFiveMinutesButton);
extendSleepFiveMinutesButton.setText(getString(R.string.extend_sleep_timer_label, 5)); extendSleepFiveMinutesButton.setText(getString(R.string.extend_sleep_timer_label, 5));