Merge "Revert accidental API change to RemoteViews." into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0e6a5f8d7e
@@ -2342,7 +2342,8 @@ public class RemoteViews implements Parcelable, Filter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public synchronized RemoteViews clone() {
|
public RemoteViews clone() {
|
||||||
|
synchronized (this) {
|
||||||
Preconditions.checkState(mIsRoot, "RemoteView has been attached to another RemoteView. "
|
Preconditions.checkState(mIsRoot, "RemoteView has been attached to another RemoteView. "
|
||||||
+ "May only clone the root of a RemoteView hierarchy.");
|
+ "May only clone the root of a RemoteView hierarchy.");
|
||||||
|
|
||||||
@@ -2361,6 +2362,7 @@ public class RemoteViews implements Parcelable, Filter {
|
|||||||
p.recycle();
|
p.recycle();
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public String getPackage() {
|
public String getPackage() {
|
||||||
return (mApplication != null) ? mApplication.packageName : null;
|
return (mApplication != null) ? mApplication.packageName : null;
|
||||||
|
|||||||
Reference in New Issue
Block a user