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

Commit db4a8fc6 authored by Adam Cohen's avatar Adam Cohen Committed by Android Git Automerger
Browse files

am 2938ac3f: Merge "Enabling RemoteViews to have a landscape and portrait layout" into jb-dev

* commit '2938ac3f':
  Enabling RemoteViews to have a landscape and portrait layout
parents a5dd37cd 2938ac3f
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -27842,6 +27842,7 @@ package android.widget {
  public class RemoteViews implements android.view.LayoutInflater.Filter android.os.Parcelable {
  public class RemoteViews implements android.view.LayoutInflater.Filter android.os.Parcelable {
    ctor public RemoteViews(java.lang.String, int);
    ctor public RemoteViews(java.lang.String, int);
    ctor public RemoteViews(android.widget.RemoteViews, android.widget.RemoteViews);
    ctor public RemoteViews(android.os.Parcel);
    ctor public RemoteViews(android.os.Parcel);
    method public void addView(int, android.widget.RemoteViews);
    method public void addView(int, android.widget.RemoteViews);
    method public android.view.View apply(android.content.Context, android.view.ViewGroup);
    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 Original line Diff line number Diff line
@@ -595,7 +595,7 @@ public class RemoteViewsAdapter extends BaseAdapter implements Handler.Callback
            for (Integer i : mIndexRemoteViews.keySet()) {
            for (Integer i : mIndexRemoteViews.keySet()) {
                final RemoteViews v = mIndexRemoteViews.get(i);
                final RemoteViews v = mIndexRemoteViews.get(i);
                if (v != null) {
                if (v != null) {
                    mem += v.estimateBitmapMemoryUsage();
                    mem += v.estimateMemoryUsage();
                }
                }
            }
            }
            return mem;
            return mem;
@@ -942,10 +942,6 @@ public class RemoteViewsAdapter extends BaseAdapter implements Handler.Callback
     * which  wouldn't otherwise be possible.
     * which  wouldn't otherwise be possible.
     */
     */
    public void setVisibleRangeHint(int lowerBound, int upperBound) {
    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;
        mVisibleWindowLowerBound = lowerBound;
        mVisibleWindowUpperBound = upperBound;
        mVisibleWindowUpperBound = upperBound;
    }
    }