Fix for play tone proactive command's wrong terminal response

After an abort has been initiated using the MMI of the ME,
the ME shall return a result of "Proactive UICC session
terminated by the user".

Change-Id: I7aa7e2a902e793e7e1235de6bfa7259f0010d17f
diff --git a/src/com/android/stk/ToneDialog.java b/src/com/android/stk/ToneDialog.java
index 0ad6ee8..b68340b 100644
--- a/src/com/android/stk/ToneDialog.java
+++ b/src/com/android/stk/ToneDialog.java
@@ -23,6 +23,7 @@
 import android.os.Message;
 import android.os.Vibrator;
 import android.view.KeyEvent;
+import android.view.MotionEvent;
 import android.view.View;
 import android.widget.ImageView;
 import android.widget.TextView;
@@ -120,6 +121,17 @@
         return false;
     }
 
+    @Override
+    public boolean onTouchEvent(MotionEvent event) {
+        switch (event.getAction()) {
+        case MotionEvent.ACTION_DOWN:
+            sendResponse(StkAppService.RES_ID_END_SESSION);
+            finish();
+            return true;
+        }
+        return super.onTouchEvent(event);
+    }
+
     private void initFromIntent(Intent intent) {
         if (intent == null) {
             finish();