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

Commit 2938ac3f authored by Adam Cohen's avatar Adam Cohen Committed by Android (Google) Code Review
Browse files

Merge "Enabling RemoteViews to have a landscape and portrait layout" into jb-dev

parents 7a4be122 5d200646
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -27842,6 +27842,7 @@ package android.widget {
  public class RemoteViews implements android.view.LayoutInflater.Filter android.os.Parcelable {
    ctor public RemoteViews(java.lang.String, int);
    ctor public RemoteViews(android.widget.RemoteViews, android.widget.RemoteViews);
    ctor public RemoteViews(android.os.Parcel);
    method public void addView(int, android.widget.RemoteViews);
    method public android.view.View apply(android.content.Context, android.view.ViewGroup);
+417 −99

File changed.

Preview size limit exceeded, changes collapsed.

+1 −5
Original line number Diff line number Diff line
@@ -595,7 +595,7 @@ public class RemoteViewsAdapter extends BaseAdapter implements Handler.Callback
            for (Integer i : mIndexRemoteViews.keySet()) {
                final RemoteViews v = mIndexRemoteViews.get(i);
                if (v != null) {
                    mem += v.estimateBitmapMemoryUsage();
                    mem += v.estimateMemoryUsage();
                }
            }
            return mem;
@@ -942,10 +942,6 @@ public class RemoteViewsAdapter extends BaseAdapter implements Handler.Callback
     * which  wouldn't otherwise be possible.
     */
    public void setVisibleRangeHint(int lowerBound, int upperBound) {
        if (lowerBound < 0 || upperBound < 0) {
            throw new RuntimeException("Attempted to set invalid range: lowerBound="+lowerBound +
                    "," + "upperBound="+upperBound);
        }
        mVisibleWindowLowerBound = lowerBound;
        mVisibleWindowUpperBound = upperBound;
    }