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

Commit 3f6b3b64 authored by Brian Muramatsu's avatar Brian Muramatsu
Browse files

Fix ClipboardManager#hasText

Bug 3202642

I didn't see any usage of ClipboardService#hasClipboardText.
It seemed like this method was designed to be called by the
deprecated hasText method to retain compatibility rather
than calling hasPrimaryClip.

Change-Id: I84d73d618a6ee2feb2e8e603c611b393850230e7
parent 8d757200
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -189,7 +189,7 @@ public class ClipboardManager extends android.text.ClipboardManager {
     */
    public boolean hasText() {
        try {
            return getService().hasPrimaryClip();
            return getService().hasClipboardText();
        } catch (RemoteException e) {
            return false;
        }