summaryrefslogtreecommitdiff
path: root/src/com/android/deskclock/controller/VoiceController.java
diff options
context:
space:
mode:
authorMichael W <baddaemon87@gmail.com>2022-03-18 20:23:26 +0100
committerMichael W <baddaemon87@gmail.com>2022-04-18 10:03:08 +0200
commitfa6047db25729eebf26826f738d4a4ab2327a512 (patch)
treee94535bf44d25673adbf26f9262c5a56413f8280 /src/com/android/deskclock/controller/VoiceController.java
parent23d7064d1abf2feb41d3d1a1812038a26e836181 (diff)
DeskClock: Remove compatibility to old APIsHEADsugisawa-mr1
* We never build on these, so the code and annotations are useless Change-Id: I791370b531ecadcbddb63ca04d5c4c51aafe1bc1
Diffstat (limited to 'src/com/android/deskclock/controller/VoiceController.java')
-rw-r--r--src/com/android/deskclock/controller/VoiceController.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/com/android/deskclock/controller/VoiceController.java b/src/com/android/deskclock/controller/VoiceController.java
index 1eae56047..ad4e9584a 100644
--- a/src/com/android/deskclock/controller/VoiceController.java
+++ b/src/com/android/deskclock/controller/VoiceController.java
@@ -16,7 +16,6 @@
package com.android.deskclock.controller;
-import android.annotation.TargetApi;
import android.app.Activity;
import android.app.VoiceInteractor;
import android.app.VoiceInteractor.AbortVoiceRequest;
@@ -26,7 +25,6 @@ import android.os.Build;
import com.android.deskclock.Utils;
-@TargetApi(Build.VERSION_CODES.M)
class VoiceController {
/**
* If the {@code activity} is currently hosting a voice interaction session, indicate the voice
@@ -36,10 +34,6 @@ class VoiceController {
* @param message to be spoken to the user to indicate success
*/
void notifyVoiceSuccess(Activity activity, String message) {
- if (!Utils.isMOrLater()) {
- return;
- }
-
final VoiceInteractor voiceInteractor = activity.getVoiceInteractor();
if (voiceInteractor != null) {
final Prompt prompt = new Prompt(message);
@@ -55,10 +49,6 @@ class VoiceController {
* @param message to be spoken to the user to indicate failure
*/
void notifyVoiceFailure(Activity activity, String message) {
- if (!Utils.isMOrLater()) {
- return;
- }
-
final VoiceInteractor voiceInteractor = activity.getVoiceInteractor();
if (voiceInteractor != null) {
final Prompt prompt = new Prompt(message);