Skip to content

Commit 7b76b72

Browse files
committed
updating commons, increasing min SDK to 23
1 parent 8cf0c2b commit 7b76b72

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ android {
1414

1515
defaultConfig {
1616
applicationId "com.simplemobiletools.notes.pro"
17-
minSdkVersion 21
17+
minSdkVersion 23
1818
targetSdkVersion 33
1919
versionCode 99
2020
versionName "6.14.1"
@@ -63,7 +63,7 @@ android {
6363
}
6464

6565
dependencies {
66-
implementation 'com.github.SimpleMobileTools:Simple-Commons:a1ecb048c0'
66+
implementation 'com.github.SimpleMobileTools:Simple-Commons:6323be1fd7'
6767
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
6868
implementation 'androidx.documentfile:documentfile:1.0.1'
6969

app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
<activity
3131
android:name=".activities.MainActivity"
32+
android:configChanges="orientation"
3233
android:exported="true"
3334
android:launchMode="singleTask">
3435

@@ -57,30 +58,21 @@
5758

5859
<activity
5960
android:name="com.simplemobiletools.commons.activities.AboutActivity"
61+
android:configChanges="orientation"
6062
android:exported="false"
6163
android:label="@string/about"
6264
android:parentActivityName=".activities.MainActivity" />
6365

6466
<activity
6567
android:name="com.simplemobiletools.commons.activities.CustomizationActivity"
68+
android:configChanges="orientation"
6669
android:exported="false"
6770
android:label="@string/customize_colors"
6871
android:parentActivityName=".activities.SettingsActivity" />
6972

70-
<activity
71-
android:name="com.simplemobiletools.commons.activities.LicenseActivity"
72-
android:exported="false"
73-
android:label="@string/third_party_licences"
74-
android:parentActivityName="com.simplemobiletools.commons.activities.AboutActivity" />
75-
76-
<activity
77-
android:name="com.simplemobiletools.commons.activities.FAQActivity"
78-
android:exported="false"
79-
android:label="@string/frequently_asked_questions"
80-
android:parentActivityName="com.simplemobiletools.commons.activities.AboutActivity" />
81-
8273
<activity
8374
android:name=".activities.SettingsActivity"
75+
android:configChanges="orientation"
8476
android:exported="true"
8577
android:label="@string/settings"
8678
android:parentActivityName=".activities.MainActivity">

app/src/main/kotlin/com/simplemobiletools/notes/pro/databases/NotesDatabase.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ abstract class NotesDatabase : RoomDatabase() {
2828
private var defaultWidgetBgColor = 0
2929

3030
fun getInstance(context: Context): NotesDatabase {
31-
defaultWidgetBgColor = context.resources.getInteger(R.integer.default_widget_bg_color)
31+
defaultWidgetBgColor = context.resources.getColor(R.color.default_widget_bg_color)
3232
if (db == null) {
3333
synchronized(NotesDatabase::class) {
3434
if (db == null) {

0 commit comments

Comments
 (0)