Revert accidentally renamed constants

This commit is contained in:
Naveen 2023-09-04 15:29:26 +05:30
parent aac1d60baf
commit a408323236
No known key found for this signature in database
GPG key ID: 0E155DAD31671DA3
2 changed files with 4 additions and 4 deletions

View file

@ -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>()

View file

@ -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