Fix ErrorActivity colors
This commit is contained in:
parent
561d5675f7
commit
c8b4685fc9
2 changed files with 8 additions and 0 deletions
|
@ -137,6 +137,8 @@ public class ErrorActivity extends AppCompatActivity {
|
||||||
protected void onCreate(final Bundle savedInstanceState) {
|
protected void onCreate(final Bundle savedInstanceState) {
|
||||||
assureCorrectAppLanguage(this);
|
assureCorrectAppLanguage(this);
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
ThemeHelper.setDayNightMode(this);
|
||||||
ThemeHelper.setTheme(this);
|
ThemeHelper.setTheme(this);
|
||||||
|
|
||||||
activityErrorBinding = ActivityErrorBinding.inflate(getLayoutInflater());
|
activityErrorBinding = ActivityErrorBinding.inflate(getLayoutInflater());
|
||||||
|
|
|
@ -47,6 +47,9 @@ public final class ThemeHelper {
|
||||||
* Apply the selected theme (on NewPipe settings) in the context
|
* Apply the selected theme (on NewPipe settings) in the context
|
||||||
* with the default style (see {@link #setTheme(Context, int)}).
|
* 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
|
* @param context context that the theme will be applied
|
||||||
*/
|
*/
|
||||||
public static void setTheme(final Context context) {
|
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,
|
* Apply the selected theme (on NewPipe settings) in the context,
|
||||||
* themed according with the styles defined for the service .
|
* 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 context context that the theme will be applied
|
||||||
* @param serviceId the theme will be styled to the service with this id,
|
* @param serviceId the theme will be styled to the service with this id,
|
||||||
* pass -1 to get the default style
|
* pass -1 to get the default style
|
||||||
|
|
Loading…
Reference in a new issue