Android: Replace Toast with Snackbar

Created on 22 Nov 2017  路  5Comments  路  Source: nextcloud/android

As Snackbar is the "newer" android way to show small text infos, we should replace all Toast with Snackbar.
Searching for "Toast.makeText" we have 33 occurrences.

approved enhancement

Most helpful comment

Hi @codedsun, yes absolutely! That would be awesome!
Please let us know if you have any questions or need assistance. We are here to help:)

All 5 comments

Sounds good :) while we might only be able to do this for occurrences within UI screens, so we should replace all Toasts triggered in the user interface while things like services, etc. that don't have a reference to a screen can/should maybe stay with Toast, not sure.

Can I Work on this issue? @tobiasKaminsky @AndyScherzinger

Hi @codedsun, yes absolutely! That would be awesome!
Please let us know if you have any questions or need assistance. We are here to help:)

@AndyScherzinger @tobiasKaminsky
Can I work on this since it hasn't been updated for a long time?

Hi @harshika-arya sure and highly welcomed. To be save you def. need to check which of them can be replaced by a Snackbar since you need to have a view where this is the displayed since not all Toasts wihtin the app's code might have a view (like some services or else).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tobiasKaminsky picture tobiasKaminsky  路  3Comments

JSoko picture JSoko  路  3Comments

ezaquarii picture ezaquarii  路  3Comments

ThaDaVos picture ThaDaVos  路  3Comments

AndyScherzinger picture AndyScherzinger  路  3Comments