changed ordering and make use of cancel action

This commit is contained in:
Philip Messlehner
2018-07-24 10:28:57 +02:00
parent f7ed2b2063
commit 44b930169c
+4 -4
View File
@@ -1262,9 +1262,9 @@ open class Manager : ArmchairManager {
} else { } else {
/// Didn't show storekit prompt, present app store manually /// Didn't show storekit prompt, present app store manually
let alertView : UIAlertController = UIAlertController(title: reviewTitle, message: reviewMessage, preferredStyle: UIAlertControllerStyle.alert) let alertView : UIAlertController = UIAlertController(title: reviewTitle, message: reviewMessage, preferredStyle: UIAlertControllerStyle.alert)
alertView.addAction(UIAlertAction(title: cancelButtonTitle, style:UIAlertActionStyle.default, handler: { alertView.addAction(UIAlertAction(title: rateButtonTitle, style:UIAlertActionStyle.cancel, handler: {
(alert: UIAlertAction!) in (alert: UIAlertAction!) in
self.dontRate() self._rateApp()
})) }))
if (showsRemindButton()) { if (showsRemindButton()) {
alertView.addAction(UIAlertAction(title: remindButtonTitle!, style:UIAlertActionStyle.default, handler: { alertView.addAction(UIAlertAction(title: remindButtonTitle!, style:UIAlertActionStyle.default, handler: {
@@ -1272,9 +1272,9 @@ open class Manager : ArmchairManager {
self.remindMeLater() self.remindMeLater()
})) }))
} }
alertView.addAction(UIAlertAction(title: rateButtonTitle, style:UIAlertActionStyle.cancel, handler: { alertView.addAction(UIAlertAction(title: cancelButtonTitle, style:UIAlertActionStyle.cancel, handler: {
(alert: UIAlertAction!) in (alert: UIAlertAction!) in
self._rateApp() self.dontRate()
})) }))
ratingAlert = alertView ratingAlert = alertView