Merge "Deprecate ListActivity and ExpandableListActivity" am: 0600b03d46 am: 87119ab3e2

am: e28f085137

Change-Id: If95dea203b5563252785802ba19df8288a162589
This commit is contained in:
Charles Munger
2019-11-25 07:29:17 -08:00
committed by android-build-merger
4 changed files with 52 additions and 40 deletions

View File

@@ -150,7 +150,11 @@ import java.util.Map;
*
* @see #setListAdapter
* @see android.widget.ExpandableListView
*
* @deprecated Use {@link androidx.recyclerview.widget.RecyclerView} or use
* {@link android.widget.ExpandableListView} directly
*/
@Deprecated
public class ExpandableListActivity extends Activity implements
OnCreateContextMenuListener,
ExpandableListView.OnChildClickListener, ExpandableListView.OnGroupCollapseListener,

View File

@@ -53,7 +53,11 @@ import java.util.List;
* Displays a list of all activities which can be performed
* for a given intent. Launches when clicked.
*
* @deprecated Applications can implement this UI themselves using
* {@link androidx.recyclerview.widget.RecyclerView} and
* {@link android.content.pm.PackageManager#queryIntentActivities(Intent, int)}
*/
@Deprecated
public abstract class LauncherActivity extends ListActivity {
Intent mIntent;
PackageManager mPackageManager;

View File

@@ -171,7 +171,11 @@ import android.widget.ListView;
*
* @see #setListAdapter
* @see android.widget.ListView
*
* @deprecated Use {@link androidx.fragment.app.ListFragment} or
* {@link androidx.recyclerview.widget.RecyclerView} to implement your Activity instead.
*/
@Deprecated
public class ListActivity extends Activity {
/**
* This field should be made private, so it is hidden from the SDK.