Defining a base theme, which can be overriden by derivative projects without
affecting launcher theme Bug: 70220582 Change-Id: Ie3069686be5e6a42910e90541db2d6b5b79e25c1
This commit is contained in:
1 parent
53d57998c1
commit
bd88f396dc
5 files changed
+15
-8
No files matched your search
@@ -61,7 +61,7 @@ public abstract class BaseDraggingActivity extends BaseActivity
|
||||
|
||||
private OnStartCallback mOnStartCallback;
|
||||
|
||||
private int mThemeRes = R.style.LauncherTheme;
|
||||
private int mThemeRes = R.style.AppTheme;
|
||||
|
||||
private DisplayRotationListener mRotationListener;
|
||||
|
||||
@@ -91,10 +91,10 @@ public abstract class BaseDraggingActivity extends BaseActivity
|
||||
protected int getThemeRes(WallpaperColorInfo wallpaperColorInfo) {
|
||||
if (wallpaperColorInfo.isDark()) {
|
||||
return wallpaperColorInfo.supportsDarkText() ?
|
||||
R.style.LauncherThemeDark_DarKText : R.style.LauncherThemeDark;
|
||||
R.style.AppTheme_Dark_DarkText : R.style.AppTheme_Dark;
|
||||
} else {
|
||||
return wallpaperColorInfo.supportsDarkText() ?
|
||||
R.style.LauncherTheme_DarkText : R.style.LauncherTheme;
|
||||
R.style.AppTheme_DarkText : R.style.AppTheme;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user