mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-07 01:28:52 -06:00
replacing getDescription with getQuestion all over the code
This commit is contained in:
@@ -64,7 +64,7 @@ public class SubtitleCard extends HabitCard
|
||||
|
||||
if (habit.hasReminder()) updateReminderText(habit.getReminder());
|
||||
|
||||
if (habit.getDescription().isEmpty()) questionLabel.setVisibility(GONE);
|
||||
if (habit.getQuestion().isEmpty()) questionLabel.setVisibility(GONE);
|
||||
|
||||
invalidate();
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ class AndroidNotificationTray
|
||||
val builder = NotificationCompat.Builder(context, REMINDERS_CHANNEL_ID)
|
||||
.setSmallIcon(R.drawable.ic_notification)
|
||||
.setContentTitle(habit.name)
|
||||
.setContentText(if(habit.description.isNullOrBlank()) defaultText else habit.description)
|
||||
.setContentText(if(habit.question.isBlank()) defaultText else habit.question)
|
||||
.setContentIntent(pendingIntents.showHabit(habit))
|
||||
.setDeleteIntent(pendingIntents.dismissNotification(habit))
|
||||
.addAction(addRepetitionAction)
|
||||
|
||||
Reference in New Issue
Block a user