Merge "Clean up old references to android.support in Activity and Fragment" am: 2f3b72b8ef
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1331883 Change-Id: I8d1bfc5759f272cd76addad11fe88fc986a1fd5a
This commit is contained in:
@@ -215,8 +215,8 @@ import java.util.function.Consumer;
|
|||||||
* <a name="Fragments"></a>
|
* <a name="Fragments"></a>
|
||||||
* <h3>Fragments</h3>
|
* <h3>Fragments</h3>
|
||||||
*
|
*
|
||||||
* <p>The {@link android.support.v4.app.FragmentActivity} subclass
|
* <p>The {@link androidx.fragment.app.FragmentActivity} subclass
|
||||||
* can make use of the {@link android.support.v4.app.Fragment} class to better
|
* can make use of the {@link androidx.fragment.app.Fragment} class to better
|
||||||
* modularize their code, build more sophisticated user interfaces for larger
|
* modularize their code, build more sophisticated user interfaces for larger
|
||||||
* screens, and help scale their application between small and large screens.</p>
|
* screens, and help scale their application between small and large screens.</p>
|
||||||
*
|
*
|
||||||
@@ -1003,7 +1003,7 @@ public class Activity extends ContextThemeWrapper
|
|||||||
/**
|
/**
|
||||||
* Return the LoaderManager for this activity, creating it if needed.
|
* Return the LoaderManager for this activity, creating it if needed.
|
||||||
*
|
*
|
||||||
* @deprecated Use {@link android.support.v4.app.FragmentActivity#getSupportLoaderManager()}
|
* @deprecated Use {@link androidx.fragment.app.FragmentActivity#getSupportLoaderManager()}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public LoaderManager getLoaderManager() {
|
public LoaderManager getLoaderManager() {
|
||||||
@@ -3022,7 +3022,7 @@ public class Activity extends ContextThemeWrapper
|
|||||||
* Return the FragmentManager for interacting with fragments associated
|
* Return the FragmentManager for interacting with fragments associated
|
||||||
* with this activity.
|
* with this activity.
|
||||||
*
|
*
|
||||||
* @deprecated Use {@link android.support.v4.app.FragmentActivity#getSupportFragmentManager()}
|
* @deprecated Use {@link androidx.fragment.app.FragmentActivity#getSupportFragmentManager()}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public FragmentManager getFragmentManager() {
|
public FragmentManager getFragmentManager() {
|
||||||
@@ -3035,7 +3035,7 @@ public class Activity extends ContextThemeWrapper
|
|||||||
* method and before {@link Fragment#onCreate Fragment.onCreate()}.
|
* method and before {@link Fragment#onCreate Fragment.onCreate()}.
|
||||||
*
|
*
|
||||||
* @deprecated Use {@link
|
* @deprecated Use {@link
|
||||||
* android.support.v4.app.FragmentActivity#onAttachFragment(android.support.v4.app.Fragment)}
|
* androidx.fragment.app.FragmentActivity#onAttachFragment(androidx.fragment.app.Fragment)}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public void onAttachFragment(Fragment fragment) {
|
public void onAttachFragment(Fragment fragment) {
|
||||||
@@ -5847,8 +5847,8 @@ public class Activity extends ContextThemeWrapper
|
|||||||
* @see Fragment#startActivity
|
* @see Fragment#startActivity
|
||||||
* @see Fragment#startActivityForResult
|
* @see Fragment#startActivityForResult
|
||||||
*
|
*
|
||||||
* @deprecated Use {@link android.support.v4.app.FragmentActivity#startActivityFromFragment(
|
* @deprecated Use {@link androidx.fragment.app.FragmentActivity#startActivityFromFragment(
|
||||||
* android.support.v4.app.Fragment,Intent,int)}
|
* androidx.fragment.app.Fragment,Intent,int)}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public void startActivityFromFragment(@NonNull Fragment fragment,
|
public void startActivityFromFragment(@NonNull Fragment fragment,
|
||||||
@@ -5876,8 +5876,8 @@ public class Activity extends ContextThemeWrapper
|
|||||||
* @see Fragment#startActivity
|
* @see Fragment#startActivity
|
||||||
* @see Fragment#startActivityForResult
|
* @see Fragment#startActivityForResult
|
||||||
*
|
*
|
||||||
* @deprecated Use {@link android.support.v4.app.FragmentActivity#startActivityFromFragment(
|
* @deprecated Use {@link androidx.fragment.app.FragmentActivity#startActivityFromFragment(
|
||||||
* android.support.v4.app.Fragment,Intent,int,Bundle)}
|
* androidx.fragment.app.Fragment,Intent,int,Bundle)}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public void startActivityFromFragment(@NonNull Fragment fragment,
|
public void startActivityFromFragment(@NonNull Fragment fragment,
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ import java.lang.reflect.InvocationTargetException;
|
|||||||
* While the Fragment API was introduced in
|
* While the Fragment API was introduced in
|
||||||
* {@link android.os.Build.VERSION_CODES#HONEYCOMB}, a version of the API
|
* {@link android.os.Build.VERSION_CODES#HONEYCOMB}, a version of the API
|
||||||
* at is also available for use on older platforms through
|
* at is also available for use on older platforms through
|
||||||
* {@link android.support.v4.app.FragmentActivity}. See the blog post
|
* {@link androidx.fragment.app.FragmentActivity}. See the blog post
|
||||||
* <a href="http://android-developers.blogspot.com/2011/03/fragments-for-all.html">
|
* <a href="http://android-developers.blogspot.com/2011/03/fragments-for-all.html">
|
||||||
* Fragments For All</a> for more details.
|
* Fragments For All</a> for more details.
|
||||||
*
|
*
|
||||||
@@ -258,8 +258,8 @@ import java.lang.reflect.InvocationTargetException;
|
|||||||
* pressing back will pop it to return the user to whatever previous state
|
* pressing back will pop it to return the user to whatever previous state
|
||||||
* the activity UI was in.
|
* the activity UI was in.
|
||||||
*
|
*
|
||||||
* @deprecated Use the <a href="{@docRoot}tools/extras/support-library.html">Support Library</a>
|
* @deprecated Use the <a href="{@docRoot}jetpack">Jetpack Fragment Library</a>
|
||||||
* {@link android.support.v4.app.Fragment} for consistent behavior across all devices
|
* {@link androidx.fragment.app.Fragment} for consistent behavior across all devices
|
||||||
* and access to <a href="{@docRoot}topic/libraries/architecture/lifecycle.html">Lifecycle</a>.
|
* and access to <a href="{@docRoot}topic/libraries/architecture/lifecycle.html">Lifecycle</a>.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@@ -432,7 +432,7 @@ public class Fragment implements ComponentCallbacks2, OnCreateContextMenuListene
|
|||||||
* through {@link FragmentManager#saveFragmentInstanceState(Fragment)
|
* through {@link FragmentManager#saveFragmentInstanceState(Fragment)
|
||||||
* FragmentManager.saveFragmentInstanceState}.
|
* FragmentManager.saveFragmentInstanceState}.
|
||||||
*
|
*
|
||||||
* @deprecated Use {@link android.support.v4.app.Fragment.SavedState}
|
* @deprecated Use {@link androidx.fragment.app.Fragment.SavedState}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static class SavedState implements Parcelable {
|
public static class SavedState implements Parcelable {
|
||||||
@@ -479,7 +479,7 @@ public class Fragment implements ComponentCallbacks2, OnCreateContextMenuListene
|
|||||||
* Thrown by {@link Fragment#instantiate(Context, String, Bundle)} when
|
* Thrown by {@link Fragment#instantiate(Context, String, Bundle)} when
|
||||||
* there is an instantiation failure.
|
* there is an instantiation failure.
|
||||||
*
|
*
|
||||||
* @deprecated Use {@link android.support.v4.app.Fragment.InstantiationException}
|
* @deprecated Use {@link androidx.fragment.app.Fragment.InstantiationException}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
static public class InstantiationException extends AndroidRuntimeException {
|
static public class InstantiationException extends AndroidRuntimeException {
|
||||||
@@ -1055,7 +1055,7 @@ public class Fragment implements ComponentCallbacks2, OnCreateContextMenuListene
|
|||||||
/**
|
/**
|
||||||
* Return the LoaderManager for this fragment, creating it if needed.
|
* Return the LoaderManager for this fragment, creating it if needed.
|
||||||
*
|
*
|
||||||
* @deprecated Use {@link android.support.v4.app.Fragment#getLoaderManager()}
|
* @deprecated Use {@link androidx.fragment.app.Fragment#getLoaderManager()}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public LoaderManager getLoaderManager() {
|
public LoaderManager getLoaderManager() {
|
||||||
|
|||||||
Reference in New Issue
Block a user