mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 00:20:32 +00:00
Merge pull request #8332 from litetex/fix-routeractivity-theming
Fix Routeractivity theming
This commit is contained in:
commit
8f34f69397
@ -72,6 +72,7 @@ import org.schabi.newpipe.util.Constants;
|
|||||||
import org.schabi.newpipe.util.DeviceUtils;
|
import org.schabi.newpipe.util.DeviceUtils;
|
||||||
import org.schabi.newpipe.util.ExtractorHelper;
|
import org.schabi.newpipe.util.ExtractorHelper;
|
||||||
import org.schabi.newpipe.util.ListHelper;
|
import org.schabi.newpipe.util.ListHelper;
|
||||||
|
import org.schabi.newpipe.util.Localization;
|
||||||
import org.schabi.newpipe.util.NavigationHelper;
|
import org.schabi.newpipe.util.NavigationHelper;
|
||||||
import org.schabi.newpipe.util.PermissionHelper;
|
import org.schabi.newpipe.util.PermissionHelper;
|
||||||
import org.schabi.newpipe.util.ThemeHelper;
|
import org.schabi.newpipe.util.ThemeHelper;
|
||||||
@ -127,8 +128,10 @@ public class RouterActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ThemeHelper.setDayNightMode(this);
|
||||||
setTheme(ThemeHelper.isLightThemeSelected(this)
|
setTheme(ThemeHelper.isLightThemeSelected(this)
|
||||||
? R.style.RouterActivityThemeLight : R.style.RouterActivityThemeDark);
|
? R.style.RouterActivityThemeLight : R.style.RouterActivityThemeDark);
|
||||||
|
Localization.assureCorrectAppLanguage(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -131,10 +131,6 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="RouterActivityThemeLight" parent="LightTheme">
|
<style name="RouterActivityThemeLight" parent="LightTheme">
|
||||||
<item name="colorPrimary">@android:color/transparent</item>
|
|
||||||
<item name="colorPrimaryDark">@android:color/transparent</item>
|
|
||||||
<item name="colorAccent">@android:color/transparent</item>
|
|
||||||
|
|
||||||
<item name="android:windowNoTitle">true</item>
|
<item name="android:windowNoTitle">true</item>
|
||||||
<item name="android:windowBackground">@android:color/transparent</item>
|
<item name="android:windowBackground">@android:color/transparent</item>
|
||||||
<item name="android:colorBackgroundCacheHint">@null</item>
|
<item name="android:colorBackgroundCacheHint">@null</item>
|
||||||
@ -143,10 +139,6 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="RouterActivityThemeDark" parent="DarkTheme">
|
<style name="RouterActivityThemeDark" parent="DarkTheme">
|
||||||
<item name="colorPrimary">@android:color/transparent</item>
|
|
||||||
<item name="colorPrimaryDark">@android:color/transparent</item>
|
|
||||||
<item name="colorAccent">@android:color/transparent</item>
|
|
||||||
|
|
||||||
<item name="android:windowNoTitle">true</item>
|
<item name="android:windowNoTitle">true</item>
|
||||||
<item name="android:windowBackground">@android:color/transparent</item>
|
<item name="android:windowBackground">@android:color/transparent</item>
|
||||||
<item name="android:colorBackgroundCacheHint">@null</item>
|
<item name="android:colorBackgroundCacheHint">@null</item>
|
||||||
|
Loading…
Reference in New Issue
Block a user