summaryrefslogtreecommitdiffstats
path: root/src/com/android/stk/StkAppService.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/stk/StkAppService.java')
-rw-r--r--src/com/android/stk/StkAppService.java17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/com/android/stk/StkAppService.java b/src/com/android/stk/StkAppService.java
index ea021b6..f7b47a6 100644
--- a/src/com/android/stk/StkAppService.java
+++ b/src/com/android/stk/StkAppService.java
@@ -40,7 +40,6 @@ import android.content.res.Resources;
import android.content.res.Resources.NotFoundException;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
-import android.media.RingtoneManager;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
@@ -1627,22 +1626,6 @@ public class StkAppService extends Service implements Runnable {
// if user cannot see the message from the card right now because of it.
// The notification can be dismissed if user removed the keyguard screen.
launchNotificationOnKeyguard(slotId, message);
- } else if (!(pm.isInteractive() && isTopOfStack())) {
- // User might be doing something but it is not related to the SIM Toolkit.
- // Play the tone and do vibration in order to attract user's attention.
- // User will see the input screen or the dialog soon in this case.
- NotificationChannel channel = mNotificationManager
- .getNotificationChannel(STK_NOTIFICATION_CHANNEL_ID);
- Uri uri = channel.getSound();
- if (uri != null && !Uri.EMPTY.equals(uri)
- && (NotificationManager.IMPORTANCE_LOW) < channel.getImportance()) {
- RingtoneManager.getRingtone(getApplicationContext(), uri).play();
- }
- long[] pattern = channel.getVibrationPattern();
- if (pattern != null && channel.shouldVibrate()) {
- ((Vibrator) this.getSystemService(Context.VIBRATOR_SERVICE))
- .vibrate(pattern, -1);
- }
}
// Turn on the screen.