Skip to content

Commit 3b21219

Browse files
committed
생체인증 onCancel 이벤트 누락되는거 개선
1 parent 53fb740 commit 3b21219

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

bootpay/src/main/java/kr/co/bootpay/bio/activity/BootpayBioActivity.java

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
import kr.co.bootpay.bio.memory.CurrentBioRequest;
5252
import kr.co.bootpay.bio.pager.CardPagerAdapter;
5353
import kr.co.bootpay.bio.pager.CardViewPager;
54+
import kr.co.bootpay.listener.CancelListener;
5455
import kr.co.bootpay.listener.ConfirmListener;
5556
import kr.co.bootpay.listener.DoneListener;
5657
import kr.co.bootpay.listener.EventListener;
@@ -105,6 +106,8 @@ public class BootpayBioActivity extends FragmentActivity implements BootpayBioRe
105106
@Override
106107
public void onBackPressed() {
107108
if (doubleBackToExitPressedOnce) {
109+
CancelListener cancel = CurrentBioRequest.getInstance().cancel;
110+
if(cancel != null) cancel.onCancel("사용자가 창을 닫았습니다");
108111
super.onBackPressed();
109112
return;
110113
}
@@ -230,24 +233,22 @@ public void onPageScrollStateChanged(int state) {
230233
findViewById(R.id.cancel).setOnClickListener(new View.OnClickListener() {
231234
@Override
232235
public void onClick(View view) {
236+
CancelListener cancel = CurrentBioRequest.getInstance().cancel;
237+
if(cancel != null) cancel.onCancel("사용자가 창을 닫았습니다");
233238
finish();
234-
// if(scope.bootpayBioDialog != null) scope.bootpayBioDialog.dismiss();
235239
}
236240
});
237241
findViewById(R.id.barcode).setOnClickListener(new View.OnClickListener() {
238242
@Override
239243
public void onClick(View view) {
240-
241-
clearCardPager();
242-
243-
// if(data == null || data.wallets == null || data.wallets.card == null || data.wallets.card.size() <= currentIndex) return;
244-
// if(data.wallets.card.get(currentIndex).wallet_type == -1) {
245-
// startBioPay(data.user, data.wallets.card.get(currentIndex));
246-
// } else if(data.wallets.card.get(currentIndex).wallet_type == 1) {
247-
// goNewCardActivity();
248-
// } else if(data.wallets.card.get(currentIndex).wallet_type == 2) {
249-
// goOtherActivity();
250-
// }
244+
if(data == null || data.wallets == null || data.wallets.card == null || data.wallets.card.size() <= currentIndex) return;
245+
if(data.wallets.card.get(currentIndex).wallet_type == -1) {
246+
startBioPay(data.user, data.wallets.card.get(currentIndex));
247+
} else if(data.wallets.card.get(currentIndex).wallet_type == 1) {
248+
goNewCardActivity();
249+
} else if(data.wallets.card.get(currentIndex).wallet_type == 2) {
250+
goOtherActivity();
251+
}
251252
}
252253
});
253254
// getFra

0 commit comments

Comments
 (0)