Showing
2 changed files
with
6 additions
and
6 deletions
... | @@ -258,7 +258,9 @@ public class CouponInfoActivity extends Activity implements View.OnClickListener | ... | @@ -258,7 +258,9 @@ public class CouponInfoActivity extends Activity implements View.OnClickListener |
258 | // WarplyCouponsChangedEventModel couponsChanged = new WarplyCouponsChangedEventModel(); | 258 | // WarplyCouponsChangedEventModel couponsChanged = new WarplyCouponsChangedEventModel(); |
259 | // couponsChanged.setChanged(true); | 259 | // couponsChanged.setChanged(true); |
260 | // EventBus.getDefault().post(new WarplyEventBusManager(couponsChanged)); | 260 | // EventBus.getDefault().post(new WarplyEventBusManager(couponsChanged)); |
261 | - onBackPressed(); | 261 | + |
262 | +// onBackPressed(); | ||
263 | + finish(); | ||
262 | } | 264 | } |
263 | } | 265 | } |
264 | } | 266 | } | ... | ... |
... | @@ -2,8 +2,6 @@ package ly.warp.sdk.activities; | ... | @@ -2,8 +2,6 @@ package ly.warp.sdk.activities; |
2 | 2 | ||
3 | import android.app.Activity; | 3 | import android.app.Activity; |
4 | import android.content.Context; | 4 | import android.content.Context; |
5 | -import android.content.DialogInterface; | ||
6 | -import android.content.Intent; | ||
7 | import android.os.Bundle; | 5 | import android.os.Bundle; |
8 | import android.text.TextUtils; | 6 | import android.text.TextUtils; |
9 | import android.util.Log; | 7 | import android.util.Log; |
... | @@ -330,16 +328,16 @@ public class CouponShareActivity extends Activity implements View.OnClickListene | ... | @@ -330,16 +328,16 @@ public class CouponShareActivity extends Activity implements View.OnClickListene |
330 | .setTitle(R.string.cos_dlg_success_title) | 328 | .setTitle(R.string.cos_dlg_success_title) |
331 | .setMessage(R.string.cos_dlg_positive_coupon_text) | 329 | .setMessage(R.string.cos_dlg_positive_coupon_text) |
332 | .setPositiveButton(R.string.cos_dlg_positive_button2, (dialogPositive, whichPositive) -> { | 330 | .setPositiveButton(R.string.cos_dlg_positive_button2, (dialogPositive, whichPositive) -> { |
333 | - dialogPositive.dismiss(); | 331 | +// dialogPositive.dismiss(); |
334 | if (mIsFromWallet) { | 332 | if (mIsFromWallet) { |
335 | setResult(RESULT_OK); | 333 | setResult(RESULT_OK); |
336 | - onBackPressed(); | 334 | + finish(); |
337 | } | 335 | } |
338 | }) | 336 | }) |
339 | .setOnDismissListener(dialog -> { | 337 | .setOnDismissListener(dialog -> { |
340 | if (mIsFromWallet) { | 338 | if (mIsFromWallet) { |
341 | setResult(RESULT_OK); | 339 | setResult(RESULT_OK); |
342 | - onBackPressed(); | 340 | + finish(); |
343 | } | 341 | } |
344 | }) | 342 | }) |
345 | .show(); | 343 | .show(); | ... | ... |
-
Please register or login to post a comment