mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 16:40:32 +00:00
Fix ErrorActivity colors
This commit is contained in:
parent
561d5675f7
commit
c8b4685fc9
@ -137,6 +137,8 @@ public class ErrorActivity extends AppCompatActivity {
|
||||
protected void onCreate(final Bundle savedInstanceState) {
|
||||
assureCorrectAppLanguage(this);
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
ThemeHelper.setDayNightMode(this);
|
||||
ThemeHelper.setTheme(this);
|
||||
|
||||
activityErrorBinding = ActivityErrorBinding.inflate(getLayoutInflater());
|
||||
|
@ -47,6 +47,9 @@ public final class ThemeHelper {
|
||||
* Apply the selected theme (on NewPipe settings) in the context
|
||||
* with the default style (see {@link #setTheme(Context, int)}).
|
||||
*
|
||||
* ThemeHelper.setDayNightMode should be called before
|
||||
* the applying theme for the first time in session
|
||||
*
|
||||
* @param context context that the theme will be applied
|
||||
*/
|
||||
public static void setTheme(final Context context) {
|
||||
@ -57,6 +60,9 @@ public final class ThemeHelper {
|
||||
* Apply the selected theme (on NewPipe settings) in the context,
|
||||
* themed according with the styles defined for the service .
|
||||
*
|
||||
* ThemeHelper.setDayNightMode should be called before
|
||||
* the applying theme for the first time in session
|
||||
*
|
||||
* @param context context that the theme will be applied
|
||||
* @param serviceId the theme will be styled to the service with this id,
|
||||
* pass -1 to get the default style
|
||||
|
Loading…
Reference in New Issue
Block a user