Skip to content

Commit

Permalink
PIA-937: Fix tv theme changing during app startup
Browse files Browse the repository at this point in the history
  • Loading branch information
kp-juan-docal committed Nov 15, 2023
1 parent a0b9e99 commit 37dd9ba
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ public static void updateActivityTheme(AppCompatActivity activity){
* @param app
*/
public static void setAppTheme(Application app){
if (PIAApplication.isAndroidTV(app)) {
return;
}

Theme theme = getPrefTheme(app);
int mode = AppCompatDelegate.MODE_NIGHT_NO;
switch (theme){
Expand Down

0 comments on commit 37dd9ba

Please sign in to comment.