updating commons

This commit is contained in:
tibbi 2023-05-07 18:23:49 +02:00
parent c18a39ea17
commit e844db71d5
6 changed files with 12 additions and 21 deletions

View File

@ -70,7 +70,7 @@ android {
} }
dependencies { dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:5a860f5e21' implementation 'com.github.SimpleMobileTools:Simple-Commons:6ed2cb04b7'
implementation 'androidx.multidex:multidex:2.0.1' implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'

View File

@ -31,6 +31,7 @@ import com.simplemobiletools.calendar.pro.adapters.AutoCompleteTextViewAdapter
import com.simplemobiletools.calendar.pro.dialogs.* import com.simplemobiletools.calendar.pro.dialogs.*
import com.simplemobiletools.calendar.pro.extensions.* import com.simplemobiletools.calendar.pro.extensions.*
import com.simplemobiletools.calendar.pro.helpers.* import com.simplemobiletools.calendar.pro.helpers.*
import com.simplemobiletools.calendar.pro.helpers.Formatter
import com.simplemobiletools.calendar.pro.models.* import com.simplemobiletools.calendar.pro.models.*
import com.simplemobiletools.commons.dialogs.ColorPickerDialog import com.simplemobiletools.commons.dialogs.ColorPickerDialog
import com.simplemobiletools.commons.dialogs.ConfirmationAdvancedDialog import com.simplemobiletools.commons.dialogs.ConfirmationAdvancedDialog
@ -41,13 +42,11 @@ import com.simplemobiletools.commons.helpers.*
import com.simplemobiletools.commons.models.RadioItem import com.simplemobiletools.commons.models.RadioItem
import com.simplemobiletools.commons.views.MyAutoCompleteTextView import com.simplemobiletools.commons.views.MyAutoCompleteTextView
import kotlinx.android.synthetic.main.activity_event.* import kotlinx.android.synthetic.main.activity_event.*
import kotlinx.android.synthetic.main.activity_event.view.event_reminder_2 import kotlinx.android.synthetic.main.activity_event.view.*
import kotlinx.android.synthetic.main.activity_event.view.event_reminder_3
import kotlinx.android.synthetic.main.item_attendee.view.* import kotlinx.android.synthetic.main.item_attendee.view.*
import org.joda.time.DateTime import org.joda.time.DateTime
import org.joda.time.DateTimeZone import org.joda.time.DateTimeZone
import java.util.Calendar import java.util.*
import java.util.TimeZone
import java.util.regex.Pattern import java.util.regex.Pattern
class EventActivity : SimpleActivity() { class EventActivity : SimpleActivity() {
@ -1317,9 +1316,7 @@ class EventActivity : SimpleActivity() {
storeEvent(wasRepeatable) storeEvent(wasRepeatable)
} }
} else { } else {
PermissionRequiredDialog(this, messageId = R.string.no_post_notifications_permissions) { PermissionRequiredDialog(this, R.string.allow_notifications_reminders)
openNotificationSettings()
}
} }
} }
} else { } else {

View File

@ -157,12 +157,14 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
addBirthdaysAnniversariesAtStart() addBirthdaysAnniversariesAtStart()
if (isPackageInstalled("com.simplemobiletools.calendar")) { if (isPackageInstalled("com.simplemobiletools.calendar")) {
ConfirmationDialog(this, "", R.string.upgraded_to_pro_calendar, R.string.ok, 0, false) {} ConfirmationDialog(this, "", R.string.upgraded_from_free_calendar, R.string.ok, 0, false) {}
} }
addImportIdsToTasks { addImportIdsToTasks {
refreshViewPager() refreshViewPager()
} }
PermissionRequiredDialog(this, R.string.allow_notifications_reminders)
} }
override fun onResume() { override fun onResume() {
@ -1067,9 +1069,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
} }
} }
} else { } else {
PermissionRequiredDialog(this, messageId = R.string.no_post_notifications_permissions) { PermissionRequiredDialog(this, R.string.allow_notifications_reminders)
openNotificationSettings()
}
} }
} }
} else { } else {

View File

@ -85,9 +85,7 @@ open class SimpleActivity : BaseSimpleActivity() {
} }
} }
} else { } else {
PermissionRequiredDialog(this, messageId = R.string.no_post_notifications_permissions) { PermissionRequiredDialog(this, R.string.allow_notifications_reminders)
openNotificationSettings()
}
} }
} }
} }

View File

@ -433,9 +433,7 @@ class TaskActivity : SimpleActivity() {
storeTask(wasRepeatable) storeTask(wasRepeatable)
} }
} else { } else {
PermissionRequiredDialog(this, messageId = R.string.no_post_notifications_permissions) { PermissionRequiredDialog(this, R.string.allow_notifications_reminders)
openNotificationSettings()
}
} }
} }
} else { } else {

View File

@ -36,9 +36,7 @@ class SetRemindersDialog(val activity: SimpleActivity, val eventType: Int, val c
} }
} }
} else { } else {
PermissionRequiredDialog(activity, messageId = R.string.no_post_notifications_permissions) { PermissionRequiredDialog(activity, R.string.allow_notifications_reminders)
activity.openNotificationSettings()
}
} }
} }
} }