From c818b141ee97a7a26fe069456d4b662d06c9eaea Mon Sep 17 00:00:00 2001 From: Marco Nelissen Date: Wed, 19 Aug 2009 08:32:21 -0700 Subject: [PATCH] Do not enable the rew/pause/ffwd buttons when the media being played does not support these functions. This extends the MediaPlayerControl interface with some new methods, and uses reflection to detect whether the old or new interface is used by an application. --- api/current.xml | 66 +++++++++++++++++++ core/java/android/widget/MediaController.java | 41 +++++++++--- core/java/android/widget/VideoView.java | 30 ++++++++- 3 files changed, 127 insertions(+), 10 deletions(-) diff --git a/api/current.xml b/api/current.xml index e9082bc5af253..ec76edb3ce8a4 100644 --- a/api/current.xml +++ b/api/current.xml @@ -175196,6 +175196,39 @@ deprecated="not deprecated" visibility="public" > + + + + + + + + + + + +