Loading core/java/android/widget/RemoteViews.java +24 −15 Original line number Diff line number Diff line Loading @@ -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."); Loading @@ -2437,6 +2445,7 @@ public class RemoteViews implements Parcelable, Filter { p.recycle(); return rv; } } public String getPackage() { return (mApplication != null) ? mApplication.packageName : null; Loading Loading
core/java/android/widget/RemoteViews.java +24 −15 Original line number Diff line number Diff line Loading @@ -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."); Loading @@ -2437,6 +2445,7 @@ public class RemoteViews implements Parcelable, Filter { p.recycle(); return rv; } } public String getPackage() { return (mApplication != null) ? mApplication.packageName : null; Loading