-
Notifications
You must be signed in to change notification settings - Fork 97
824: successful create toast notification #1123
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should once we can get the RoutePresenter
to find a toast_container
in the activity's layout.xml
this patch will become much simpler.
HMU if you want to pair on this.
Addressed comments. Ready for re-review!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking so much cleaner.
I especially like the use of decorView
.
There are still a few changes to be done, but this is really becoming quite a neat bit of work. Well done.
app/src/main/java/mozilla/lockbox/presenter/ItemListPresenter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/mozilla/lockbox/presenter/ItemMutationPresenter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/mozilla/lockbox/presenter/ItemMutationPresenter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/mozilla/lockbox/presenter/CreateItemPresenter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/mozilla/lockbox/model/ToastNotificationViewModel.kt
Outdated
Show resolved
Hide resolved
Also: you should also add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fresh eyes drive by.
app/src/main/java/mozilla/lockbox/presenter/ItemListPresenter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/mozilla/lockbox/model/ToastNotificationViewModel.kt
Outdated
Show resolved
Hide resolved
76ff9e3
to
a9a690d
Compare
a9a690d
to
54b1243
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there. Let's pair for the last bit.
data class ToastNotificationViewModel( | ||
@StringRes val strId: Int, | ||
@DrawableRes val img: Int, | ||
val deletedItem: String? = null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: this a string to be inserted into the strId
string. We can't say it's a deletedItem
.
} else { | ||
null | ||
listOf(ItemDetailAction.EndEditItemSession) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set this to null
please.
Paired and addressed changes :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lovely! Please land celebrate test and demo toute suite.
Fixes #824
Testing and Review Notes
fun showToastNotification(..)
into theRootActivity
ToastNotificationAction
s to define each toast in a single placeScreenshots or Videos
To Do