@@ -951,6 +951,8 @@ - (void)updatePopupLayout
951951 [context.actionName isEqualToString: LPMT_HTML_NAME]);
952952 BOOL isWeb = [context.actionName isEqualToString: LPMT_WEB_INTERSTITIAL_NAME] ||
953953 [context.actionName isEqualToString: LPMT_HTML_NAME];
954+
955+ BOOL isPushAskToAsk = [context.actionName isEqualToString: LPMT_PUSH_ASK_TO_ASK];
954956
955957 UIEdgeInsets safeAreaInsets = [self safeAreaInsets ];
956958
@@ -1002,7 +1004,7 @@ - (void)updatePopupLayout
10021004 }
10031005
10041006 if (!isWeb) {
1005- [self updateNonWebPopupLayout: statusBarHeight];
1007+ [self updateNonWebPopupLayout: statusBarHeight isPushAskToAsk: isPushAskToAsk ];
10061008 _overlayView.frame = CGRectMake (0 , 0 , screenWidth, screenHeight);
10071009 }
10081010 CGFloat leftSafeAreaX = safeAreaInsets.left ;
@@ -1133,12 +1135,12 @@ - (CGSize)getTextSizeFromButton:(UIButton *)button
11331135 return textSize;
11341136}
11351137
1136- - (void )updateNonWebPopupLayout : (int )statusBarHeight
1138+ - (void )updateNonWebPopupLayout : (int )statusBarHeight isPushAskToAsk : ( BOOL ) isPushAskToAsk
11371139{
11381140 _popupBackground.frame = CGRectMake (0 , 0 , _popupView.frame .size .width , _popupView.frame .size .height );
11391141 CGSize textSize = [self getTextSizeFromButton: _acceptButton];
11401142
1141- if (_cancelButton ) {
1143+ if (isPushAskToAsk ) {
11421144 CGSize cancelTextSize = [self getTextSizeFromButton: _cancelButton];
11431145 textSize = CGSizeMake (MAX (textSize.width , cancelTextSize.width ),
11441146 MAX (textSize.height , cancelTextSize.height ));
0 commit comments