Compare commits

...

4 Commits

Author SHA1 Message Date
56f91526e6 Update CHANGELOG 2020-12-29 18:51:12 -06:00
dbc6a16a98 Set forceDarkAllowed to false 2020-12-29 18:43:09 -06:00
011abf62a0 Bump version to 1.8.11 2020-12-09 20:01:35 -06:00
Sunxy88
9c96857262 Use dark theme in settings window. (#655) 2020-12-09 19:57:03 -06:00
5 changed files with 21 additions and 18 deletions

View File

@@ -1,5 +1,9 @@
# Changelog
### 1.8.11 (Dev 29, 2020)
* Fix theme issues on Xiaomi phones
### 1.8.10 (Nov 26, 2020)
* Update translations

View File

@@ -1,5 +1,5 @@
VERSION_CODE = 10810
VERSION_NAME = 1.8.10
VERSION_CODE = 10811
VERSION_NAME = 1.8.11
MIN_SDK_VERSION = 21
TARGET_SDK_VERSION = 29

View File

@@ -23,17 +23,25 @@ import android.os.*;
import org.isoron.androidbase.activities.*;
import org.isoron.androidbase.utils.*;
import org.isoron.uhabits.R;
import org.isoron.uhabits.*;
import org.isoron.uhabits.activities.*;
/**
* Activity that allows the user to view and modify the app settings.
*/
public class SettingsActivity extends BaseActivity
{
private AndroidThemeSwitcher themeSwitcher;
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
HabitsApplicationComponent compoenent = ((HabitsApplication) getApplication()).getComponent();
themeSwitcher = new AndroidThemeSwitcher(this, compoenent.getPreferences());
themeSwitcher.apply();
setContentView(R.layout.settings_activity);
setupActionBarColor();
}

View File

@@ -1,14 +1,2 @@
1.8.10:
* Update translations
1.8.9
* Remove unused permissions
* Notification bundling
1.8:
* New bar chart showing number of repetitions performed each week, month or year
* Performing habits on irregular weekdays will no longer break your streak
* More colors
* Customize how transparent the widgets are
* Customize the first day of the week
* Yes/No buttons on notifications
* Automatic dark theme (Android 10)
* Smaller APK and backup files
1.8.11:
* Fix theme issues on Xiaomi phones

View File

@@ -17,8 +17,9 @@
~ with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<resources>
<resources xmlns:tools="http://schemas.android.com/tools">
<style name="AppBaseTheme" parent="@style/Theme.AppCompat.Light.NoActionBar">
<item name="android:forceDarkAllowed" tools:targetApi="q">false</item>
<item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item>
<item name="android:dialogTheme">@style/Theme.AppCompat.Light.Dialog</item>
<item name="android:alertDialogTheme">@style/Theme.AppCompat.Light.Dialog</item>
@@ -75,6 +76,7 @@
</style>
<style name="AppBaseThemeDark" parent="@style/Theme.AppCompat.NoActionBar">
<item name="android:forceDarkAllowed" tools:targetApi="q">false</item>
<item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item>
<item name="android:dialogTheme">@style/Theme.AppCompat.Dialog</item>
<item name="android:alertDialogTheme">@style/Theme.AppCompat.Dialog</item>
@@ -127,6 +129,7 @@
</style>
<style name="AppBaseThemeDark.PureBlack">
<item name="android:forceDarkAllowed" tools:targetApi="q">false</item>
<item name="selectedBackground">@drawable/selected_box_amoled</item>
<item name="cardBackground">@drawable/card_amoled_background</item>