Skip to content

Commit

Permalink
dork theme set from start. white do not look good. also lib update bu…
Browse files Browse the repository at this point in the history
…t not tested.
  • Loading branch information
senpl committed Aug 7, 2020
1 parent f1e5745 commit bc38b72
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "com.fitworkoutfast"
minSdkVersion 21
targetSdkVersion 29
versionCode 45
versionName "0.22.02"
versionCode 46
versionName "0.22.03"
vectorDrawables.useSupportLibrary = true
}

Expand Down Expand Up @@ -79,7 +79,7 @@ dependencies {

// Support
implementation 'androidx.annotation:annotation:1.1.0'
implementation "androidx.constraintlayout:constraintlayout:2.0.0-beta8"
implementation "androidx.constraintlayout:constraintlayout:2.0.0-rc1"
implementation 'androidx.appcompat:appcompat:1.3.0-alpha01'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.1.0'
Expand All @@ -88,7 +88,7 @@ dependencies {
implementation 'androidx.fragment:fragment-ktx:1.2.5'
implementation 'androidx.preference:preference:1.1.1'
implementation 'androidx.viewpager:viewpager:1.0.0'
implementation 'com.google.android.material:material:1.1.0'
implementation 'com.google.android.material:material:1.2.0'

// Firebase
//implementation 'com.google.firebase:firebase-core:17.0.0'
Expand All @@ -110,7 +110,7 @@ dependencies {
//implementation('com.crashlytics.sdk.android:crashlytics:2.9.9@aar', {
// transitive = true
//})
implementation "androidx.core:core-ktx:1.3.0"
implementation "androidx.core:core-ktx:1.3.1"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.github.senpl:NumberSlidingPicker:2cd87266c8e7d7656df9eef964bf062da95833a3' //from https://github.com/senpl/NumberSlidingPicker/commit/2cd87266c8e7d7656df9eef964bf062da95833a3
implementation 'com.github.thepacific:rx2timer:0.0.3'
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/fitworkoutfast/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,12 @@ public void onCreate(Bundle savedInstanceState) {
}

SharedPreferences SP = PreferenceManager.getDefaultSharedPreferences(getBaseContext());
String dayNightAuto = SP.getString("dayNightAuto", Integer.toString(getResources().getInteger(R.integer.autoui_mode_value)));
String dayNightAuto = SP.getString("dayNightAuto", Integer.toString(getResources().getInteger(R.integer.dark_mode_value)));
int dayNightAutoValue;
try {
dayNightAutoValue = Integer.parseInt(dayNightAuto);
}catch(NumberFormatException e) {
dayNightAutoValue = getResources().getInteger(R.integer.autoui_mode_value);
dayNightAutoValue = getResources().getInteger(R.integer.dark_mode_value);
}
if(dayNightAutoValue == getResources().getInteger(R.integer.dark_mode_value)) {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:4.0.0'
classpath 'com.android.tools.build:gradle:4.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
//classpath 'com.google.gms:google-services:4.2.0'

Expand Down

0 comments on commit bc38b72

Please sign in to comment.