summaryrefslogtreecommitdiff
path: root/core/java/android/util/SuperNotCalledException.java
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2013-07-18 19:42:41 -0700
committerAdam Powell <adamp@google.com>2013-09-05 00:55:20 +0000
commit1487466dc2ce14cccf0ff2bd2f824238aaa0044e (patch)
tree4bf31a9b198846b45f9a15b3ebc53532bb748e6b /core/java/android/util/SuperNotCalledException.java
parent7f71206d009e737e91c4c767183befe6006497c6 (diff)
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/util/SuperNotCalledException.java')
-rw-r--r--core/java/android/util/SuperNotCalledException.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/core/java/android/util/SuperNotCalledException.java b/core/java/android/util/SuperNotCalledException.java
new file mode 100644
index 000000000000..18361420b813
--- /dev/null
+++ b/core/java/android/util/SuperNotCalledException.java
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2013 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package android.util;
+
+/**
+ * @hide
+ */
+public final class SuperNotCalledException extends AndroidRuntimeException {
+ public SuperNotCalledException(String msg) {
+ super(msg);
+ }
+}