Mercurial > hg > ccmiandroid
diff src/uk/ac/qmul/eecs/ccmi/accessibility/AccessibleDialogBuilder.java @ 1:66b3a838feca logging tip
Added logging of user interaction
author | Fiore Martin <fiore@eecs.qmul.ac.uk> |
---|---|
date | Tue, 12 Feb 2013 15:31:48 +0000 |
parents | e0ee6ac3a45f |
children |
line wrap: on
line diff
--- a/src/uk/ac/qmul/eecs/ccmi/accessibility/AccessibleDialogBuilder.java Thu Dec 13 20:00:21 2012 +0000 +++ b/src/uk/ac/qmul/eecs/ccmi/accessibility/AccessibleDialogBuilder.java Tue Feb 12 15:31:48 2013 +0000 @@ -20,6 +20,7 @@ import uk.ac.qmul.eecs.ccmi.accessibility.AccessibilityService.SoundEvent; import uk.ac.qmul.eecs.ccmi.activities.R; +import uk.ac.qmul.eecs.ccmi.utilities.ILogger; import android.app.AlertDialog; import android.app.Dialog; import android.content.Context; @@ -83,6 +84,8 @@ args.putInt("dialogType", type); args.putString("tag", tag); accessibleDialogFragment.setArguments(args); + + ILogger.logDialog(tag); /* show the dialog */ accessibleDialogFragment.show(fragmentManager,tag); } @@ -110,6 +113,8 @@ if(text != null) args.putString("text", text); accessibleDialogFragment.setArguments(args); + + ILogger.logDialog(tag); /* show the dialog */ accessibleDialogFragment.show(fragmentManager,tag); } @@ -136,6 +141,8 @@ args.putInt("dialogType", R.layout.selection_dialog); args.putString("tag", tag); accessibleDialogFragment.setArguments(args); + + ILogger.logDialog(tag); /* show the dialog */ accessibleDialogFragment.show(fragmentManager,tag); } @@ -165,6 +172,8 @@ args.putInt("dialogType", R.layout.checkbox_dialog); args.putString("tag", tag); accessibleDialogFragment.setArguments(args); + + ILogger.logDialog(tag); /* show the dialog */ accessibleDialogFragment.show(fragmentManager,tag); } @@ -261,6 +270,12 @@ LayoutSonifier.getInstance().onTouch(layout, evt, accessibilityService); return super.dispatchTouchEvent(evt); } + + @Override + public void onBackPressed(){ + super.onBackPressed(); + ILogger.logTap("back (cancel)"); + } } }