@@ -237,14 +237,17 @@ public void onClick(View view) {
237237 findViewById (R .id .barcode ).setOnClickListener (new View .OnClickListener () {
238238 @ Override
239239 public void onClick (View view ) {
240- if (data == null || data .wallets == null || data .wallets .card == null || data .wallets .card .size () <= currentIndex ) return ;
241- if (data .wallets .card .get (currentIndex ).wallet_type == -1 ) {
242- startBioPay (data .user , data .wallets .card .get (currentIndex ));
243- } else if (data .wallets .card .get (currentIndex ).wallet_type == 1 ) {
244- goNewCardActivity ();
245- } else if (data .wallets .card .get (currentIndex ).wallet_type == 2 ) {
246- goOtherActivity ();
247- }
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+ // }
248251 }
249252 });
250253// getFra
@@ -330,12 +333,12 @@ private String getComma(double value) {
330333 }
331334
332335 public void clearCardPager () {
333- this .data = data ;
334336 Handler handler = new Handler (Looper .getMainLooper ());
335337 handler .post (new Runnable () {
336338 @ Override
337339 public void run () {
338340 cardPagerAdapter .removeData ();
341+
339342 cardPagerAdapter .notifyDataSetChanged ();
340343 }
341344 });
@@ -353,6 +356,14 @@ public void run() {
353356 });
354357 }
355358
359+ // @Override
360+ // protected void onPostResume() {
361+ // super.onPostResume();
362+ // if(this.cardPagerAdapter != null){
363+ // this.cardPagerAdapter.notifyDataSetChanged();
364+ // }
365+ // }
366+
356367 // @Override
357368// protected void onStart() {
358369// super.onStart();
@@ -373,7 +384,7 @@ void getEasyCardWalletList() {
373384 if (uuid == null || "" .equals (uuid )) { Log .d ("bootpay" , "uuid 값이 없습니다" ); return ; }
374385 if (userToken == null || "" .equals (userToken )) { Log .d ("bootpay" , "userToken 값이 없습니다" ); return ; }
375386
376- clearCardPager ();
387+ // clearCardPager();
377388 presenter .getEasyCardWallet (uuid , userToken );
378389 }
379390
@@ -718,6 +729,9 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
718729 vibrator .vibrate (10 );
719730 finish ();
720731 }
732+ } else {
733+ CurrentBioRequest .getInstance ().type = CurrentBioRequest .REQUEST_TYPE_RESULT_FAILED ;
734+ getEasyCardWalletList ();
721735 }
722736 }
723737}
0 commit comments