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

Commit c9006872 authored by Adam Powell's avatar Adam Powell
Browse files

Fix bug 2523989

AlertDialog's docs now refer to the id android.R.id.custom, the
correct method addView, and android.R.id.custom has been exported as a
public id.

Change-Id: Ide43a03b702f0b36326130909f9a864872ec93fb
parent 2fbc10f3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -35,12 +35,12 @@ import com.android.internal.app.AlertController;
/**
 * A subclass of Dialog that can display one, two or three buttons. If you only want to
 * display a String in this dialog box, use the setMessage() method.  If you
 * want to display a more complex view, look up the FrameLayout called "body"
 * want to display a more complex view, look up the FrameLayout called "custom"
 * and add your view to it:
 *
 * <pre>
 * FrameLayout fl = (FrameLayout) findViewById(R.id.body);
 * fl.add(myView, new LayoutParams(MATCH_PARENT, WRAP_CONTENT));
 * FrameLayout fl = (FrameLayout) findViewById(android.R.id.custom);
 * fl.addView(myView, new LayoutParams(MATCH_PARENT, WRAP_CONTENT));
 * </pre>
 * 
 * <p>The AlertDialog class takes care of automatically setting
+1 −0
Original line number Diff line number Diff line
@@ -67,4 +67,5 @@
  <item type="id" name="addToDictionary" />
  <item type="id" name="accountPreferences" />
  <item type="id" name="smallIcon" />
  <item type="id" name="custom" />
</resources>
+3 −1
Original line number Diff line number Diff line
@@ -1238,6 +1238,8 @@
  <public type="attr" name="overscrollHeader" id="0x010102bf" />
  <public type="attr" name="overscrollFooter" id="0x010102c0" />

  <public type="id" name="custom" id="0x0102002b" />
    
  <public type="anim" name="cycle_interpolator" id="0x010a000c" />

</resources>