mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 01:08:50 -06:00
Show message after archiving/unarchiving habits
This commit is contained in:
@@ -203,7 +203,8 @@ class ShowHabitActivity : AppCompatActivity(), CommandRunner.Listener {
|
||||
}
|
||||
|
||||
private fun getPopupAnchor(): View? {
|
||||
val dialog = supportFragmentManager.findFragmentByTag("historyEditor") as HistoryEditorDialog?
|
||||
val dialog =
|
||||
supportFragmentManager.findFragmentByTag("historyEditor") as HistoryEditorDialog?
|
||||
return dialog?.dataView
|
||||
}
|
||||
|
||||
@@ -216,6 +217,25 @@ class ShowHabitActivity : AppCompatActivity(), CommandRunner.Listener {
|
||||
ShowHabitMenuPresenter.Message.COULD_NOT_EXPORT -> {
|
||||
showMessage(resources.getString(R.string.could_not_export))
|
||||
}
|
||||
|
||||
ShowHabitMenuPresenter.Message.HABIT_ARCHIVED -> {
|
||||
showMessage(
|
||||
resources.getQuantityString(
|
||||
R.plurals.toast_habits_archived,
|
||||
1
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
ShowHabitMenuPresenter.Message.HABIT_UNARCHIVED -> {
|
||||
showMessage(
|
||||
resources.getQuantityString(
|
||||
R.plurals.toast_habits_unarchived,
|
||||
1
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user