diff options
author | Dianne Hackborn <hackbod@google.com> | 2009-09-17 15:14:12 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2009-09-17 18:01:35 -0700 |
commit | fa82f22f1d8c4c828bdf9b670006be4f4fec772e (patch) | |
tree | 586dbd1bf9cbefe26cfecd6cf853b78eb6a4fb64 /test-runner | |
parent | 9b64ef133c1eb24c8d00aa7e46ec86c544af5fe2 (diff) | |
download | frameworks_base-fa82f22f1d8c4c828bdf9b670006be4f4fec772e.zip frameworks_base-fa82f22f1d8c4c828bdf9b670006be4f4fec772e.tar.gz frameworks_base-fa82f22f1d8c4c828bdf9b670006be4f4fec772e.tar.bz2 |
Fix issue #2093608: Calendar widget takes a few seconds to launch
Avert your eyes!
The key change here is that RemoteViews can now call a Context API to
start its pending intent, which inside of the activity manager we can
use to determine to cancel the timeout delay for external entities
to disrupt the home screen.
Change-Id: If097cf7478cbed7a3c04a304050bd7fd5703d197
Diffstat (limited to 'test-runner')
-rw-r--r-- | test-runner/android/test/mock/MockContext.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test-runner/android/test/mock/MockContext.java b/test-runner/android/test/mock/MockContext.java index 9fb1e61..5368526 100644 --- a/test-runner/android/test/mock/MockContext.java +++ b/test-runner/android/test/mock/MockContext.java @@ -22,6 +22,7 @@ import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.BroadcastReceiver; +import android.content.IntentSender; import android.content.ServiceConnection; import android.content.SharedPreferences; import android.content.pm.ApplicationInfo; @@ -228,6 +229,13 @@ public class MockContext extends Context { } @Override + public void startIntentSender(IntentSender intent, + Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags) + throws IntentSender.SendIntentException { + throw new UnsupportedOperationException(); + } + + @Override public void sendBroadcast(Intent intent) { throw new UnsupportedOperationException(); } |