Properly deprecate RemoteInputCompatBase and all its contents.
RemoteInputCompatBase, RemoteInput, and RemoteInput.Factory were not
meant to be public. This CL deprecates them so we can later remove it.
Test: None
Change-Id: I5582281061e10b4803a212c2830b88cd2427c933
diff --git a/api/26.1.0-SNAPSHOT.txt b/api/26.1.0-SNAPSHOT.txt
index 2d465a4..8a068ba 100644
--- a/api/26.1.0-SNAPSHOT.txt
+++ b/api/26.1.0-SNAPSHOT.txt
@@ -6711,14 +6711,14 @@
deprecated class RemoteInputCompatBase {
}
- public static abstract class RemoteInputCompatBase.RemoteInput {
- ctor public RemoteInputCompatBase.RemoteInput();
- method protected abstract boolean getAllowFreeFormInput();
- method protected abstract java.util.Set<java.lang.String> getAllowedDataTypes();
- method protected abstract java.lang.CharSequence[] getChoices();
- method protected abstract android.os.Bundle getExtras();
- method protected abstract java.lang.CharSequence getLabel();
- method protected abstract java.lang.String getResultKey();
+ public static abstract deprecated class RemoteInputCompatBase.RemoteInput {
+ ctor public deprecated RemoteInputCompatBase.RemoteInput();
+ method protected abstract deprecated boolean getAllowFreeFormInput();
+ method protected abstract deprecated java.util.Set<java.lang.String> getAllowedDataTypes();
+ method protected abstract deprecated java.lang.CharSequence[] getChoices();
+ method protected abstract deprecated android.os.Bundle getExtras();
+ method protected abstract deprecated java.lang.CharSequence getLabel();
+ method protected abstract deprecated java.lang.String getResultKey();
}
public final class ServiceCompat {
diff --git a/compat/api/26.1.0-SNAPSHOT.txt b/compat/api/26.1.0-SNAPSHOT.txt
index d6f02b4..b3b5173 100644
--- a/compat/api/26.1.0-SNAPSHOT.txt
+++ b/compat/api/26.1.0-SNAPSHOT.txt
@@ -525,14 +525,14 @@
deprecated class RemoteInputCompatBase {
}
- public static abstract class RemoteInputCompatBase.RemoteInput {
- ctor public RemoteInputCompatBase.RemoteInput();
- method protected abstract boolean getAllowFreeFormInput();
- method protected abstract java.util.Set<java.lang.String> getAllowedDataTypes();
- method protected abstract java.lang.CharSequence[] getChoices();
- method protected abstract android.os.Bundle getExtras();
- method protected abstract java.lang.CharSequence getLabel();
- method protected abstract java.lang.String getResultKey();
+ public static abstract deprecated class RemoteInputCompatBase.RemoteInput {
+ ctor public deprecated RemoteInputCompatBase.RemoteInput();
+ method protected abstract deprecated boolean getAllowFreeFormInput();
+ method protected abstract deprecated java.util.Set<java.lang.String> getAllowedDataTypes();
+ method protected abstract deprecated java.lang.CharSequence[] getChoices();
+ method protected abstract deprecated android.os.Bundle getExtras();
+ method protected abstract deprecated java.lang.CharSequence getLabel();
+ method protected abstract deprecated java.lang.String getResultKey();
}
public final class ServiceCompat {
diff --git a/compat/ics/android/support/v4/app/RemoteInputCompatBase.java b/compat/ics/android/support/v4/app/RemoteInputCompatBase.java
index 09c3429..fa7f7b6 100644
--- a/compat/ics/android/support/v4/app/RemoteInputCompatBase.java
+++ b/compat/ics/android/support/v4/app/RemoteInputCompatBase.java
@@ -26,14 +26,57 @@
@Deprecated
class RemoteInputCompatBase {
+ /**
+ * @deprecated This class was not meant to be made public.
+ */
+ @Deprecated
public abstract static class RemoteInput {
+ /**
+ * @deprecated This method was not meant to be made public.
+ */
+ @Deprecated
+ public RemoteInput() {}
+
+ /**
+ * @deprecated This method was not meant to be made public.
+ */
+ @Deprecated
protected abstract String getResultKey();
+
+ /**
+ * @deprecated This method was not meant to be made public.
+ */
+ @Deprecated
protected abstract CharSequence getLabel();
+
+ /**
+ * @deprecated This method was not meant to be made public.
+ */
+ @Deprecated
protected abstract CharSequence[] getChoices();
+
+ /**
+ * @deprecated This method was not meant to be made public.
+ */
+ @Deprecated
protected abstract boolean getAllowFreeFormInput();
+
+ /**
+ * @deprecated This method was not meant to be made public.
+ */
+ @Deprecated
protected abstract Bundle getExtras();
+
+ /**
+ * @deprecated This method was not meant to be made public.
+ */
+ @Deprecated
protected abstract Set<String> getAllowedDataTypes();
+ /**
+ * @deprecated This class was not meant to be made public.
+ */
+ @Deprecated
public interface Factory {
RemoteInput build(String resultKey, CharSequence label,
CharSequence[] choices, boolean allowFreeFormInput, Bundle extras,