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

Commit 7170bb63 authored by Cary Clark's avatar Cary Clark
Browse files

add null check to copy selection

This prevents a toast from appearing
if copyselection is done initially.

bug:3339016
Change-Id: If6f91b8f3794b3807fb3319fc542838abd431c64
parent 31d9d895
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4955,7 +4955,7 @@ public class WebView extends AbsoluteLayout
    public boolean copySelection() {
        boolean copiedSomething = false;
        String selection = getSelection();
        if (selection != "") {
        if (selection != null && selection != "") {
            if (DebugFlags.WEB_VIEW) {
                Log.v(LOGTAG, "copySelection \"" + selection + "\"");
            }