File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7272import org .schabi .newpipe .util .DeviceUtils ;
7373import org .schabi .newpipe .util .ExtractorHelper ;
7474import org .schabi .newpipe .util .ListHelper ;
75+ import org .schabi .newpipe .util .Localization ;
7576import org .schabi .newpipe .util .NavigationHelper ;
7677import org .schabi .newpipe .util .PermissionHelper ;
7778import org .schabi .newpipe .util .ThemeHelper ;
@@ -127,8 +128,10 @@ protected void onCreate(final Bundle savedInstanceState) {
127128 }
128129 }
129130
131+ ThemeHelper .setDayNightMode (this );
130132 setTheme (ThemeHelper .isLightThemeSelected (this )
131133 ? R .style .RouterActivityThemeLight : R .style .RouterActivityThemeDark );
134+ Localization .assureCorrectAppLanguage (this );
132135 }
133136
134137 @ Override
Original file line number Diff line number Diff line change 131131 </style >
132132
133133 <style name =" RouterActivityThemeLight" parent =" LightTheme" >
134- <item name =" colorPrimary" >@android:color/transparent</item >
135- <item name =" colorPrimaryDark" >@android:color/transparent</item >
136- <item name =" colorAccent" >@android:color/transparent</item >
137-
138134 <item name =" android:windowNoTitle" >true</item >
139135 <item name =" android:windowBackground" >@android:color/transparent</item >
140136 <item name =" android:colorBackgroundCacheHint" >@null</item >
143139 </style >
144140
145141 <style name =" RouterActivityThemeDark" parent =" DarkTheme" >
146- <item name =" colorPrimary" >@android:color/transparent</item >
147- <item name =" colorPrimaryDark" >@android:color/transparent</item >
148- <item name =" colorAccent" >@android:color/transparent</item >
149-
150142 <item name =" android:windowNoTitle" >true</item >
151143 <item name =" android:windowBackground" >@android:color/transparent</item >
152144 <item name =" android:colorBackgroundCacheHint" >@null</item >
You can’t perform that action at this time.
0 commit comments