Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 498991b2 authored by Daniel Norman's avatar Daniel Norman
Browse files

Replaces Toast with a custom minimal snackbar-like TextView.

- Snackbar requires the material library, which (even after
  automatic optimization) increases the APK size from ~300kb
  to ~2.5MB.
- Toasts can normally be displayed without any permissions from
  foreground apps. However, despite rendering UI
  AccessibilityServices run in the background so they cannot
  post Toasts without requesting POST_NOTIFICATION permission
  from the user.

This minimal TextView appears in the same style as a Snackbar but
without any extra dependencies.

Bug: 261252772
Test: Call showSnackbar(), observe custom snackbar UI
Change-Id: Ide2cf4640ff930afdb2ec3ff4eda833058a0b9f6
parent 17a7bc4a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment