- if (swipeDialog != null) swipeDialog.dismiss();
- swipeDialog = makeDialog();
- swipeDialog.show();
- }
-
- private AlertDialog makeDialog() {
- AlertDialog.Builder builder = new AlertDialog.Builder(this);
- builder.setTitle(R.string.challenging);
- builder.setMessage(R.string.swipe);
- builder.setOnCancelListener(
- new DialogInterface.OnCancelListener() {
- public void onCancel(DialogInterface dialog) {
- Log.v(TAG, "unbind service FIXME");
- }
- });
- return builder.create();