When receiving a text share an attempt is made to show a toast but that results
in an exception because the issuing thread is not running a looper.
Details
Details
- Reviewers
albertvaka - Group Reviewers
KDE Connect - Commits
- R225:087b7ce875ae: Make toast work from a background thread
Without this patch applied Share a text with an android device using the plasmoid
Result: No toast is displayed and in logcat you will get a:
java.lang.RuntimeException: Can't toast on a thread that has not called Looper.prepare() exception
With this patch applied again Share a text an android device using the plasmoid
Result: The toast is actually displayed even when the activity is not in the foreground
Diff Detail
Diff Detail
- Repository
- R225 KDE Connect - Android application
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.