<table><tr><td style="">eduisters created this revision.<br />eduisters added a reviewer: KDE Connect.<br />Herald added a project: KDE Connect.<br />Herald added a subscriber: kdeconnect.<br />eduisters requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D17400">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When receiving a text share an attempt is made to show a toast but that results<br />
in an exception because the issuing threat is not running a looper.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Without this patch applied Share a text with an android device using the plasmoid<br />
Result: No toast is displayed and in logcat you will get a:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">java.lang.RuntimeException: Can't toast on a thread that has not called Looper.prepare() exception</pre></div>

<p>With this patch applied again Share a text an android device using the plasmoid<br />
Result: The toast is actually displayed even when the activity is not in the foreground</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R225 KDE Connect - Android application</div></div></div><br /><div><strong>BRANCH</strong><div><div>make_toast_work</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17400">https://phabricator.kde.org/D17400</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java</div></div></div><br /><div><strong>To: </strong>eduisters, KDE Connect<br /><strong>Cc: </strong>kdeconnect, mschroeder, varunp, shivanshukantprasad, skymoore, brute4s99, wistak, anoopv, dvalencia, rmenezes, julioc, Leptopoda, timothyc, jdvr, Danial0_0, johnq, Pitel, adeen-s, SemperPeritus, daniel.z.tg, jeanv, seebauer, bugzy, MayeulC, menasshock, mikesomov, tctara, apol<br /></div>