mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
Revert accidentally renamed constants
This commit is contained in:
@@ -407,7 +407,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
|||||||
|
|
||||||
val newEventIntent = Intent(this, SplashActivity::class.java)
|
val newEventIntent = Intent(this, SplashActivity::class.java)
|
||||||
newEventIntent.action = SHORTCUT_NEW_EVENT
|
newEventIntent.action = SHORTCUT_NEW_EVENT
|
||||||
return ShortcutInfo.Builder(this, "newEvent")
|
return ShortcutInfo.Builder(this, "new_event")
|
||||||
.setShortLabel(newEvent)
|
.setShortLabel(newEvent)
|
||||||
.setLongLabel(newEvent)
|
.setLongLabel(newEvent)
|
||||||
.setIcon(Icon.createWithBitmap(newEventBitmap))
|
.setIcon(Icon.createWithBitmap(newEventBitmap))
|
||||||
@@ -423,7 +423,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
|||||||
val newTaskBitmap = newTaskDrawable.convertToBitmap()
|
val newTaskBitmap = newTaskDrawable.convertToBitmap()
|
||||||
val newTaskIntent = Intent(this, SplashActivity::class.java)
|
val newTaskIntent = Intent(this, SplashActivity::class.java)
|
||||||
newTaskIntent.action = SHORTCUT_NEW_TASK
|
newTaskIntent.action = SHORTCUT_NEW_TASK
|
||||||
return ShortcutInfo.Builder(this, "newTask")
|
return ShortcutInfo.Builder(this, "new_task")
|
||||||
.setShortLabel(newTask)
|
.setShortLabel(newTask)
|
||||||
.setLongLabel(newTask)
|
.setLongLabel(newTask)
|
||||||
.setIcon(Icon.createWithBitmap(newTaskBitmap))
|
.setIcon(Icon.createWithBitmap(newTaskBitmap))
|
||||||
@@ -1389,7 +1389,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// events fetched from Thunderbird, https://www.thunderbird.net/en-US/calendar/holidays and
|
// events fetched from Thunderbird, https://www.thunderbird.net/en-US/calendar/holidays and
|
||||||
// https://holidays.kayaposoft.com/publicHolidays.php?year=2021
|
// https://holidays.kayaposoft.com/public_holidays.php?year=2021
|
||||||
private fun getHolidayRadioItems(): ArrayList<RadioItem> {
|
private fun getHolidayRadioItems(): ArrayList<RadioItem> {
|
||||||
val items = ArrayList<RadioItem>()
|
val items = ArrayList<RadioItem>()
|
||||||
|
|
||||||
|
@@ -39,7 +39,7 @@ import kotlin.math.min
|
|||||||
import kotlin.math.roundToInt
|
import kotlin.math.roundToInt
|
||||||
|
|
||||||
class WeekFragment : Fragment(), WeeklyCalendar {
|
class WeekFragment : Fragment(), WeeklyCalendar {
|
||||||
private val WEEKLY_EVENT_ID_LABEL = "eventIdLabel"
|
private val WEEKLY_EVENT_ID_LABEL = "event_id_label"
|
||||||
private val PLUS_FADEOUT_DELAY = 5000L
|
private val PLUS_FADEOUT_DELAY = 5000L
|
||||||
private val MIN_SCALE_FACTOR = 0.3f
|
private val MIN_SCALE_FACTOR = 0.3f
|
||||||
private val MAX_SCALE_FACTOR = 5f
|
private val MAX_SCALE_FACTOR = 5f
|
||||||
|
Reference in New Issue
Block a user