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

Commit c04bc8ef authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Manually merge 23bb5bf2 to fix APIs"

parents 1d2ac86f 0a14ba56
Loading
Loading
Loading
Loading
+24 −15
Original line number Diff line number Diff line
@@ -2417,8 +2417,16 @@ public class RemoteViews implements Parcelable, Filter {
        recalculateMemoryUsage();
    }


    public synchronized RemoteViews clone() {
    /**
     * Returns a deep copy of the RemoteViews object. The RemoteView may not be
     * attached to another RemoteView -- it must be the root of a hierarchy.
     *
     * @throws IllegalStateException if this is not the root of a RemoteView
     *         hierarchy
     */
    @Override
    public RemoteViews clone() {
        synchronized (this) {
            Preconditions.checkState(mIsRoot, "RemoteView has been attached to another RemoteView. "
                    + "May only clone the root of a RemoteView hierarchy.");

@@ -2437,6 +2445,7 @@ public class RemoteViews implements Parcelable, Filter {
            p.recycle();
            return rv;
        }
    }

    public String getPackage() {
        return (mApplication != null) ? mApplication.packageName : null;