diff options
| author | Adam Powell <adamp@google.com> | 2013-07-18 19:42:41 -0700 |
|---|---|---|
| committer | Adam Powell <adamp@google.com> | 2013-09-05 00:55:20 +0000 |
| commit | 1487466dc2ce14cccf0ff2bd2f824238aaa0044e (patch) | |
| tree | 4bf31a9b198846b45f9a15b3ebc53532bb748e6b /core/java/android/app/ActivityThread.java | |
| parent | 7f71206d009e737e91c4c767183befe6006497c6 (diff) | |
| download | frameworks_base-1487466dc2ce14cccf0ff2bd2f824238aaa0044e.zip frameworks_base-1487466dc2ce14cccf0ff2bd2f824238aaa0044e.tar.gz frameworks_base-1487466dc2ce14cccf0ff2bd2f824238aaa0044e.tar.bz2 | |
Add View#cancelPendingInputEvents API
This API allows an application to cancel deferred high-level input
events already in flight. It forms one tool of several to help apps
debounce input events and prevent things like multiple startActivity
calls, FragmentTransactions, etc. from executing when only one was
desired since it's otherwise not desirable for things like click
events to fire synchronously.
Change-Id: I60b12cd5350898065f0019d616e24d779eb8cff9
Diffstat (limited to 'core/java/android/app/ActivityThread.java')
| -rw-r--r-- | core/java/android/app/ActivityThread.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java index e6960b3..018fbe0 100644 --- a/core/java/android/app/ActivityThread.java +++ b/core/java/android/app/ActivityThread.java @@ -76,6 +76,7 @@ import android.util.Log; import android.util.LogPrinter; import android.util.PrintWriterPrinter; import android.util.Slog; +import android.util.SuperNotCalledException; import android.view.Display; import android.view.HardwareRenderer; import android.view.View; @@ -116,12 +117,6 @@ import libcore.io.IoUtils; import dalvik.system.CloseGuard; -final class SuperNotCalledException extends AndroidRuntimeException { - public SuperNotCalledException(String msg) { - super(msg); - } -} - final class RemoteServiceException extends AndroidRuntimeException { public RemoteServiceException(String msg) { super(msg); |
