updating commons, increasing min SDK to 23

This commit is contained in:
tibbi
2022-12-24 23:04:51 +01:00
parent 8cf0c2b7b8
commit 7b76b7290c
3 changed files with 7 additions and 15 deletions

View File

@ -29,6 +29,7 @@
<activity
android:name=".activities.MainActivity"
android:configChanges="orientation"
android:exported="true"
android:launchMode="singleTask">
@ -57,30 +58,21 @@
<activity
android:name="com.simplemobiletools.commons.activities.AboutActivity"
android:configChanges="orientation"
android:exported="false"
android:label="@string/about"
android:parentActivityName=".activities.MainActivity" />
<activity
android:name="com.simplemobiletools.commons.activities.CustomizationActivity"
android:configChanges="orientation"
android:exported="false"
android:label="@string/customize_colors"
android:parentActivityName=".activities.SettingsActivity" />
<activity
android:name="com.simplemobiletools.commons.activities.LicenseActivity"
android:exported="false"
android:label="@string/third_party_licences"
android:parentActivityName="com.simplemobiletools.commons.activities.AboutActivity" />
<activity
android:name="com.simplemobiletools.commons.activities.FAQActivity"
android:exported="false"
android:label="@string/frequently_asked_questions"
android:parentActivityName="com.simplemobiletools.commons.activities.AboutActivity" />
<activity
android:name=".activities.SettingsActivity"
android:configChanges="orientation"
android:exported="true"
android:label="@string/settings"
android:parentActivityName=".activities.MainActivity">

View File

@ -28,7 +28,7 @@ abstract class NotesDatabase : RoomDatabase() {
private var defaultWidgetBgColor = 0
fun getInstance(context: Context): NotesDatabase {
defaultWidgetBgColor = context.resources.getInteger(R.integer.default_widget_bg_color)
defaultWidgetBgColor = context.resources.getColor(R.color.default_widget_bg_color)
if (db == null) {
synchronized(NotesDatabase::class) {
if (db == null) {