Loading core/java/com/android/internal/app/AlertActivity.java +18 −0 Original line number Diff line number Diff line Loading @@ -17,9 +17,14 @@ package com.android.internal.app; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.os.Bundle; import android.text.TextUtils; import android.view.KeyEvent; import android.view.ViewGroup; import android.view.accessibility.AccessibilityEvent; /** * An activity that follows the visual style of an AlertDialog. Loading Loading @@ -62,6 +67,19 @@ public abstract class AlertActivity extends Activity implements DialogInterface } } @Override public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { event.setClassName(Dialog.class.getName()); event.setPackageName(getPackageName()); ViewGroup.LayoutParams params = getWindow().getAttributes(); boolean isFullScreen = (params.width == ViewGroup.LayoutParams.MATCH_PARENT) && (params.height == ViewGroup.LayoutParams.MATCH_PARENT); event.setFullScreen(isFullScreen); return false; } /** * Sets up the alert, including applying the parameters to the alert model, * and installing the alert's content. Loading Loading
core/java/com/android/internal/app/AlertActivity.java +18 −0 Original line number Diff line number Diff line Loading @@ -17,9 +17,14 @@ package com.android.internal.app; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.os.Bundle; import android.text.TextUtils; import android.view.KeyEvent; import android.view.ViewGroup; import android.view.accessibility.AccessibilityEvent; /** * An activity that follows the visual style of an AlertDialog. Loading Loading @@ -62,6 +67,19 @@ public abstract class AlertActivity extends Activity implements DialogInterface } } @Override public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { event.setClassName(Dialog.class.getName()); event.setPackageName(getPackageName()); ViewGroup.LayoutParams params = getWindow().getAttributes(); boolean isFullScreen = (params.width == ViewGroup.LayoutParams.MATCH_PARENT) && (params.height == ViewGroup.LayoutParams.MATCH_PARENT); event.setFullScreen(isFullScreen); return false; } /** * Sets up the alert, including applying the parameters to the alert model, * and installing the alert's content. Loading