Commit ea3936ae authored by smaslo@chromium.org's avatar smaslo@chromium.org

Add method to show distilled page prefs dialog

Adds a method to DistilledPagePrefsView that creates and shows an AlertDialog
with a DistilledPagePrefsView.

CQ_TRYBOTS=tryserver.chromium.linux:android_aosp,android_clang_dbg,android_dbg
BUG=383630

Review URL: https://codereview.chromium.org/462253004

Cr-Commit-Position: refs/heads/master@{#289445}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289445 0039d316-1c4b-4281-b951-d872f2087c98
parent 5c46812f
......@@ -4,6 +4,7 @@
package org.chromium.chrome.browser.dom_distiller;
import android.app.AlertDialog;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
......@@ -52,6 +53,12 @@ public class DistilledPagePrefsView extends RadioGroup
.inflate(VIEW_LAYOUT, null);
}
public static void showDialog(Context context) {
AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.setView(DistilledPagePrefsView.create(context));
builder.show();
}
@Override
public void onFinishInflate() {
super.onFinishInflate();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment