mirror of
https://github.com/FossifyOrg/Notes.git
synced 2026-02-18 15:28:14 -05:00
chore: drop support for Android 7 and older versions
See: https://github.com/orgs/FossifyOrg/discussions/241
This commit is contained in:
@@ -84,7 +84,6 @@ import org.fossify.commons.helpers.PROTECTION_NONE
|
||||
import org.fossify.commons.helpers.REAL_FILE_PATH
|
||||
import org.fossify.commons.helpers.SHOW_ALL_TABS
|
||||
import org.fossify.commons.helpers.ensureBackgroundThread
|
||||
import org.fossify.commons.helpers.isNougatMR1Plus
|
||||
import org.fossify.commons.helpers.isQPlus
|
||||
import org.fossify.commons.models.FAQItem
|
||||
import org.fossify.commons.models.FileDirItem
|
||||
@@ -401,7 +400,7 @@ class MainActivity : SimpleActivity() {
|
||||
@SuppressLint("NewApi")
|
||||
private fun checkShortcuts() {
|
||||
val appIconColor = config.appIconColor
|
||||
if (isNougatMR1Plus() && config.lastHandledShortcutColor != appIconColor) {
|
||||
if (config.lastHandledShortcutColor != appIconColor) {
|
||||
val newTextNote = getNewTextNoteShortcut(appIconColor)
|
||||
val newChecklist = getNewChecklistShortcut(appIconColor)
|
||||
|
||||
|
||||
@@ -29,7 +29,6 @@ import org.fossify.commons.helpers.NavigationIcon
|
||||
import org.fossify.commons.helpers.PROTECTION_FINGERPRINT
|
||||
import org.fossify.commons.helpers.SHOW_ALL_TABS
|
||||
import org.fossify.commons.helpers.ensureBackgroundThread
|
||||
import org.fossify.commons.helpers.isOreoPlus
|
||||
import org.fossify.commons.helpers.isQPlus
|
||||
import org.fossify.commons.helpers.isRPlus
|
||||
import org.fossify.commons.helpers.isSPlus
|
||||
@@ -372,7 +371,6 @@ class SettingsActivity : SimpleActivity() {
|
||||
}
|
||||
|
||||
private fun setupIncognitoMode() {
|
||||
binding.settingsUseIncognitoModeHolder.beVisibleIf(isOreoPlus())
|
||||
binding.settingsUseIncognitoMode.isChecked = config.useIncognitoMode
|
||||
binding.settingsUseIncognitoModeHolder.setOnClickListener {
|
||||
binding.settingsUseIncognitoMode.toggle()
|
||||
|
||||
@@ -14,7 +14,6 @@ import org.fossify.commons.adapters.MyRecyclerViewAdapter
|
||||
import org.fossify.commons.extensions.*
|
||||
import org.fossify.commons.helpers.LOWER_ALPHA_INT
|
||||
import org.fossify.commons.helpers.SORT_BY_CUSTOM
|
||||
import org.fossify.commons.helpers.isOreoPlus
|
||||
import org.fossify.commons.views.MyRecyclerView
|
||||
import org.fossify.notes.R
|
||||
import org.fossify.notes.databinding.OpenNoteItemBinding
|
||||
@@ -82,16 +81,10 @@ class OpenNoteAdapter(
|
||||
openNoteItemIcon.apply {
|
||||
beVisibleIf(note.path.isNotEmpty())
|
||||
applyColorFilter(textColor)
|
||||
if (isOreoPlus()) {
|
||||
tooltipText = context.getString(R.string.this_note_is_linked)
|
||||
}
|
||||
tooltipText = context.getString(R.string.this_note_is_linked)
|
||||
|
||||
setOnClickListener {
|
||||
if (isOreoPlus()) {
|
||||
performLongClick()
|
||||
} else {
|
||||
activity.toast(R.string.this_note_is_linked)
|
||||
}
|
||||
performLongClick()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ gradlePlugins-agp = "8.9.2"
|
||||
#build
|
||||
app-build-compileSDKVersion = "34"
|
||||
app-build-targetSDK = "34"
|
||||
app-build-minimumSDK = "23"
|
||||
app-build-minimumSDK = "26"
|
||||
app-build-javaVersion = "VERSION_17"
|
||||
app-build-kotlinJVMTarget = "17"
|
||||
#versioning
|
||||
|
||||
Reference in New Issue
Block a user