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

Commit 00ee5b46 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "Fix issue #3299143: Problem report for Hanping Chinese Dictionary Pro"

parents 7b3724dd 3b99ede3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ public class ClipboardService extends IClipboard.Stub {

    public ClipDescription getPrimaryClipDescription() {
        synchronized (this) {
            return mPrimaryClip.getDescription();
            return mPrimaryClip != null ? mPrimaryClip.getDescription() : null;
        }
    }

@@ -211,7 +211,7 @@ public class ClipboardService extends IClipboard.Stub {
        } catch (NameNotFoundException e) {
            throw new IllegalArgumentException("Unknown package " + pkg, e);
        }
        if (!mActivePermissionOwners.contains(pkg)) {
        if (mPrimaryClip != null && !mActivePermissionOwners.contains(pkg)) {
            final int N = mPrimaryClip.getItemCount();
            for (int i=0; i<N; i++) {
                grantItemLocked(mPrimaryClip.getItem(i), pkg);