Skip to content

Commit a2297fb

Browse files
committed
Fix play queue theme
1 parent 23a6973 commit a2297fb

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

app/src/main/java/org/schabi/newpipe/player/PlayQueueActivity.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
package org.schabi.newpipe.player;
22

3+
import static org.schabi.newpipe.player.helper.PlayerHelper.formatSpeed;
4+
import static org.schabi.newpipe.util.Localization.assureCorrectAppLanguage;
5+
import static org.schabi.newpipe.util.external_communication.ShareUtils.shareText;
6+
37
import android.content.ComponentName;
48
import android.content.Context;
59
import android.content.Intent;
@@ -40,15 +44,12 @@
4044
import org.schabi.newpipe.util.Localization;
4145
import org.schabi.newpipe.util.NavigationHelper;
4246
import org.schabi.newpipe.util.PermissionHelper;
47+
import org.schabi.newpipe.util.ServiceHelper;
4348
import org.schabi.newpipe.util.ThemeHelper;
4449

4550
import java.util.Collections;
4651
import java.util.List;
4752

48-
import static org.schabi.newpipe.player.helper.PlayerHelper.formatSpeed;
49-
import static org.schabi.newpipe.util.Localization.assureCorrectAppLanguage;
50-
import static org.schabi.newpipe.util.external_communication.ShareUtils.shareText;
51-
5253
public final class PlayQueueActivity extends AppCompatActivity
5354
implements PlayerEventListener, SeekBar.OnSeekBarChangeListener,
5455
View.OnClickListener, PlaybackParameterDialog.Callback {
@@ -83,7 +84,7 @@ public final class PlayQueueActivity extends AppCompatActivity
8384
protected void onCreate(final Bundle savedInstanceState) {
8485
assureCorrectAppLanguage(this);
8586
super.onCreate(savedInstanceState);
86-
ThemeHelper.setTheme(this);
87+
ThemeHelper.setTheme(this, ServiceHelper.getSelectedServiceId(this));
8788

8889
queueControlBinding = ActivityPlayerQueueControlBinding.inflate(getLayoutInflater());
8990
setContentView(queueControlBinding.getRoot());

0 commit comments

Comments
 (0)