mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-25 06:44:59 +00:00
Android: Force an AppCompat theme in the analytics AlertDialog
This fixes a crash on ATV devices, because the the AlertDialog is from the appcompat class, but the theme derived from the parent view on ATV devices isn't from AppCompat.
This commit is contained in:
parent
ee98042b81
commit
85ac06a57d
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ public class Analytics
|
|||
sPrefsEditor.putBoolean(analyticsAsked, true);
|
||||
sPrefsEditor.apply();
|
||||
|
||||
new AlertDialog.Builder(context)
|
||||
new AlertDialog.Builder(context, R.style.Theme_AppCompat_Dialog_Alert)
|
||||
.setTitle(context.getString(R.string.analytics))
|
||||
.setMessage(context.getString(R.string.analytics_desc))
|
||||
.setPositiveButton(R.string.yes, (dialogInterface, i) ->
|
||||
|
|
Loading…
Add table
Reference in a new issue