diff --git a/play-services-core/src/main/AndroidManifest.xml b/play-services-core/src/main/AndroidManifest.xml index 5df282cf88..4ccc39f296 100644 --- a/play-services-core/src/main/AndroidManifest.xml +++ b/play-services-core/src/main/AndroidManifest.xml @@ -681,7 +681,7 @@ android:name="org.microg.gms.ui.AskPushPermission" android:excludeFromRecents="true" android:process=":ui" - android:theme="@style/Theme.App.DayNight.Dialog.Alert.NoActionBar" /> + android:theme="@style/Theme.App.Translucent" /> { + if (answered) return; + database.noteAppKnown(packageName, true); + answered = true; + Bundle bundle = new Bundle(); + bundle.putBoolean(EXTRA_EXPLICIT, true); + resultReceiver.send(Activity.RESULT_OK, bundle); + finish(); + }) + .setNegativeButton(R.string.deny, (dialog, which) -> { + if (answered) return; + database.noteAppKnown(packageName, false); + answered = true; + Bundle bundle = new Bundle(); + bundle.putBoolean(EXTRA_EXPLICIT, true); + resultReceiver.send(Activity.RESULT_CANCELED, bundle); + finish(); + }) + .create() + .show(); } catch (PackageManager.NameNotFoundException e) { finish(); } diff --git a/play-services-core/src/main/res/layout/ask_gcm.xml b/play-services-core/src/main/res/layout/ask_gcm.xml index 975afa7b94..76014fd39e 100644 --- a/play-services-core/src/main/res/layout/ask_gcm.xml +++ b/play-services-core/src/main/res/layout/ask_gcm.xml @@ -1,5 +1,4 @@ - - - - - + + + + - - - - - - - - - - - - - - - - + android:text="@string/gcm_allow_app_popup" + android:textSize="18sp">