mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-03 18:21:05 +02:00
updating commons
This commit is contained in:
parent
aa41b534b3
commit
ddbe72a1a4
@ -81,7 +81,7 @@ class MainActivity : SimpleActivity() {
|
|||||||
private lateinit var searchNextBtn: ImageView
|
private lateinit var searchNextBtn: ImageView
|
||||||
private lateinit var searchClearBtn: ImageView
|
private lateinit var searchClearBtn: ImageView
|
||||||
|
|
||||||
private val binding: ActivityMainBinding by viewBinding(ActivityMainBinding::inflate)
|
private val binding by viewBinding(ActivityMainBinding::inflate)
|
||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
isMaterialActivity = true
|
isMaterialActivity = true
|
||||||
@ -268,7 +268,13 @@ class MainActivity : SimpleActivity() {
|
|||||||
|
|
||||||
override fun onBackPressed() {
|
override fun onBackPressed() {
|
||||||
if (!config.autosaveNotes && mAdapter?.anyHasUnsavedChanges() == true) {
|
if (!config.autosaveNotes && mAdapter?.anyHasUnsavedChanges() == true) {
|
||||||
ConfirmationAdvancedDialog(this, "", R.string.unsaved_changes_warning, com.simplemobiletools.commons.R.string.save, com.simplemobiletools.commons.R.string.discard) {
|
ConfirmationAdvancedDialog(
|
||||||
|
this,
|
||||||
|
"",
|
||||||
|
R.string.unsaved_changes_warning,
|
||||||
|
com.simplemobiletools.commons.R.string.save,
|
||||||
|
com.simplemobiletools.commons.R.string.discard
|
||||||
|
) {
|
||||||
if (it) {
|
if (it) {
|
||||||
mAdapter?.saveAllFragmentTexts()
|
mAdapter?.saveAllFragmentTexts()
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ import kotlin.system.exitProcess
|
|||||||
|
|
||||||
class SettingsActivity : SimpleActivity() {
|
class SettingsActivity : SimpleActivity() {
|
||||||
private val notesFileType = "application/json"
|
private val notesFileType = "application/json"
|
||||||
private val binding: ActivitySettingsBinding by viewBinding(ActivitySettingsBinding::inflate)
|
private val binding by viewBinding(ActivitySettingsBinding::inflate)
|
||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
isMaterialActivity = true
|
isMaterialActivity = true
|
||||||
|
@ -41,7 +41,7 @@ class WidgetConfigureActivity : SimpleActivity() {
|
|||||||
private var mIsCustomizingColors = false
|
private var mIsCustomizingColors = false
|
||||||
private var mShowTitle = false
|
private var mShowTitle = false
|
||||||
private var mNotes = listOf<Note>()
|
private var mNotes = listOf<Note>()
|
||||||
private val binding: WidgetConfigBinding by viewBinding(WidgetConfigBinding::inflate)
|
private val binding by viewBinding(WidgetConfigBinding::inflate)
|
||||||
|
|
||||||
public override fun onCreate(savedInstanceState: Bundle?) {
|
public override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
useDynamicTheme = false
|
useDynamicTheme = false
|
||||||
|
@ -10,7 +10,7 @@ androidx-documentfile = "1.0.1"
|
|||||||
#Room
|
#Room
|
||||||
room = "2.6.0-alpha02"
|
room = "2.6.0-alpha02"
|
||||||
#Simple tools
|
#Simple tools
|
||||||
simple-commons = "d1629c7f1a"
|
simple-commons = "7c1e5b5777"
|
||||||
#Gradle
|
#Gradle
|
||||||
gradlePlugins-agp = "8.1.0"
|
gradlePlugins-agp = "8.1.0"
|
||||||
#build
|
#build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user