diff options
Diffstat (limited to 'core/java/android/service/voice/VoiceInteractionSessionService.java')
-rw-r--r-- | core/java/android/service/voice/VoiceInteractionSessionService.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/core/java/android/service/voice/VoiceInteractionSessionService.java b/core/java/android/service/voice/VoiceInteractionSessionService.java index 008d55f..8f988f3 100644 --- a/core/java/android/service/voice/VoiceInteractionSessionService.java +++ b/core/java/android/service/voice/VoiceInteractionSessionService.java @@ -19,6 +19,7 @@ package android.service.voice; import android.app.Service; import android.content.Context; import android.content.Intent; +import android.content.res.Configuration; import android.os.Bundle; import android.os.IBinder; import android.os.Looper; @@ -76,6 +77,30 @@ public abstract class VoiceInteractionSessionService extends Service { return mInterface.asBinder(); } + @Override + public void onConfigurationChanged(Configuration newConfig) { + super.onConfigurationChanged(newConfig); + if (mSession != null) { + mSession.onConfigurationChanged(newConfig); + } + } + + @Override + public void onLowMemory() { + super.onLowMemory(); + if (mSession != null) { + mSession.onLowMemory(); + } + } + + @Override + public void onTrimMemory(int level) { + super.onTrimMemory(level); + if (mSession != null) { + mSession.onTrimMemory(level); + } + } + void doNewSession(IBinder token, Bundle args, int startFlags) { if (mSession != null) { mSession.doDestroy(); |