mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-09-19 23:50:41 +00:00
fixed some activities where the wrong languages would be set
This commit is contained in:
@@ -80,6 +80,8 @@ import static org.schabi.newpipe.player.BasePlayer.STATE_PLAYING;
|
||||
import static org.schabi.newpipe.player.VideoPlayer.DEFAULT_CONTROLS_DURATION;
|
||||
import static org.schabi.newpipe.player.VideoPlayer.DEFAULT_CONTROLS_HIDE_TIME;
|
||||
import static org.schabi.newpipe.util.AnimationUtils.animateView;
|
||||
import static org.schabi.newpipe.util.Localization.changeAppLanguage;
|
||||
import static org.schabi.newpipe.util.Localization.getAppLocale;
|
||||
|
||||
/**
|
||||
* Service Popup Player implementing VideoPlayer
|
||||
@@ -142,6 +144,7 @@ public final class PopupVideoPlayer extends Service {
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
changeAppLanguage(getAppLocale(getApplicationContext()), getResources());
|
||||
windowManager = (WindowManager) getSystemService(WINDOW_SERVICE);
|
||||
notificationManager = ((NotificationManager) getSystemService(NOTIFICATION_SERVICE));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user