()
| 643 | getString(R.string.warning_new_session), this, |
| 644 | new ConfirmDialogListener() { |
| 645 | @Override |
| 646 | public void onConfirm() { |
| 647 | try { |
| 648 | System.reset(); |
| 649 | mTargetAdapter.notifyDataSetChanged(); |
| 650 | |
| 651 | Toast.makeText( |
| 652 | MainActivity.this, |
| 653 | getString(R.string.new_session_started), |
| 654 | Toast.LENGTH_SHORT).show(); |
| 655 | } catch (Exception e) { |
| 656 | new FatalDialog(getString(R.string.error), e |
| 657 | .toString(), MainActivity.this).show(); |
| 658 | } |
| 659 | } |
| 660 | |
| 661 | @Override |
| 662 | public void onCancel() { |