diff --git a/.idea/misc.xml b/.idea/misc.xml index 5d19981..ba7052b 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,8 +1,5 @@ - - - - - - - - - - - - - - + diff --git a/README.md b/README.md index f2928d8..b801efe 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ allprojects { ```gradle dependencies { - compile 'com.github.daniel-stoneuk:material-about-library:2.2.0' + compile 'com.github.daniel-stoneuk:material-about-library:2.2.1' } ``` @@ -73,10 +73,10 @@ public class ExampleMaterialAboutActivity extends MaterialAboutActivity { Ensure that the theme extends either of these themes, and apply primary & accent colours: -- `Theme.Mal.Light` (with dark toolbar) -- `Theme.Mal.Dark` (with dark toolbar) -- `Theme.Mal.Light.LightActionBar` (with light toolbar) -- `Theme.Mal.Dark.LightActionBar` (with light toolbar) +- `Theme.Mal.Light` (light theme with light toolbar) +- `Theme.Mal.Light.DarkActionBar` (light theme with dark toolbar) +- `Theme.Mal.Dark` (dark theme with dark toolbar) +- `Theme.Mal.Dark.LightActionBar` (dark theme with light toolbar) ```xml diff --git a/app/build.gradle b/app/build.gradle index 8533df0..b61ce09 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.application' def versionMajor = 2 def versionMinor = 2 -def versionPatch = 0 +def versionPatch = 1 def versionBuild = 0 // bump for dogfood builds, public betas, etc. diff --git a/app/src/main/java/com/danielstone/materialaboutlibrarydemo/ExampleMaterialAboutActivity.java b/app/src/main/java/com/danielstone/materialaboutlibrarydemo/ExampleMaterialAboutActivity.java index 8321d57..f5677fa 100644 --- a/app/src/main/java/com/danielstone/materialaboutlibrarydemo/ExampleMaterialAboutActivity.java +++ b/app/src/main/java/com/danielstone/materialaboutlibrarydemo/ExampleMaterialAboutActivity.java @@ -108,7 +108,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) { Log.i("test", "onCreate: " + getIntent().getIntExtra(THEME_EXTRA, THEME_LIGHT_DARKBAR)); switch (getIntent().getIntExtra(THEME_EXTRA, THEME_LIGHT_DARKBAR)) { case THEME_LIGHT_LIGHTBAR: - setTheme(R.style.AppTheme_MaterialAboutActivity_Light_LightActionBar); + setTheme(R.style.AppTheme_MaterialAboutActivity_Light); colorIcon = R.color.mal_color_icon_light_theme; break; case THEME_DARK_LIGHTBAR: @@ -120,11 +120,11 @@ protected void onCreate(@Nullable Bundle savedInstanceState) { colorIcon = R.color.mal_color_icon_light_theme; break; case THEME_DARK_DARKBAR: - setTheme(R.style.AppTheme_MaterialAboutActivity_Dark_DarkActionBar); + setTheme(R.style.AppTheme_MaterialAboutActivity_Dark); colorIcon = R.color.mal_color_icon_dark_theme; break; case THEME_CUSTOM_CARDVIEW: - setTheme(R.style.AppTheme_MaterialAboutActivity_Light_CustomCardView); + setTheme(R.style.AppTheme_MaterialAboutActivity_Light_DarkActionBar_CustomCardView); colorIcon = R.color.mal_color_icon_dark_theme; break; } diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index c66c4b1..ef7335e 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -13,7 +13,7 @@ true - - - - -