mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-14 15:30:29 -08:00
Display background dialogs using the correct style
* java/org/gnu/emacs/EmacsDialog.java (toAlertDialog): Wrap CONTEXT within EmacsStyle such that dialogs are displayed in the same style used by activities.
This commit is contained in:
parent
d1d444c2b7
commit
d2f024af61
1 changed files with 8 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ import android.widget.Button;
|
|||
import android.widget.LinearLayout;
|
||||
import android.widget.FrameLayout;
|
||||
|
||||
import android.view.ContextThemeWrapper;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.Window;
|
||||
|
|
@ -158,6 +159,13 @@ public final class EmacsDialog implements DialogInterface.OnDismissListener
|
|||
TypedArray attributes;
|
||||
Window window;
|
||||
|
||||
/* Wrap the context within a style wrapper. Any dialog properties
|
||||
tied to EmacsStyle (such as those applied by the system ``dark
|
||||
theme'') will thus affect the dialog irrespective of whether
|
||||
CONTEXT is an activity or the service. */
|
||||
|
||||
context = new ContextThemeWrapper (context, R.style.EmacsStyle);
|
||||
|
||||
size = buttons.size ();
|
||||
styleId = -1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue