New sample code for fragment support library.
Also tweak a few things to make the demos run on Donut. Change-Id: I298fdf8fb0f12ee6db10e66657a22e19a527811a
This commit is contained in:
@@ -65,11 +65,13 @@ public class ApiDemos extends ListActivity {
|
||||
return myData;
|
||||
|
||||
String[] prefixPath;
|
||||
String prefixWithSlash = prefix;
|
||||
|
||||
if (prefix.equals("")) {
|
||||
prefixPath = null;
|
||||
} else {
|
||||
prefixPath = prefix.split("/");
|
||||
prefixWithSlash = prefix + "/";
|
||||
}
|
||||
|
||||
int len = list.size();
|
||||
@@ -83,7 +85,7 @@ public class ApiDemos extends ListActivity {
|
||||
? labelSeq.toString()
|
||||
: info.activityInfo.name;
|
||||
|
||||
if (prefix.length() == 0 || label.startsWith(prefix)) {
|
||||
if (prefixWithSlash.length() == 0 || label.startsWith(prefixWithSlash)) {
|
||||
|
||||
String[] labelPath = label.split("/");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user