summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2009-06-30 10:23:32 -0700
committerRomain Guy <romainguy@android.com>2009-06-30 10:23:32 -0700
commitfc614476e42b461e5bee40b9ede172b6eec7b5d9 (patch)
tree0f2158c0c6df7d2aacc2175a1021707cde007385 /samples
parent6c3fa89aadc3294fd364838aae527be8f0536ff0 (diff)
downloadandroid_development-fc614476e42b461e5bee40b9ede172b6eec7b5d9.tar.gz
android_development-fc614476e42b461e5bee40b9ede172b6eec7b5d9.tar.bz2
android_development-fc614476e42b461e5bee40b9ede172b6eec7b5d9.zip
Fix NPE in Home sample.
Diffstat (limited to 'samples')
-rw-r--r--samples/Home/src/com/example/android/home/ApplicationsStackLayout.java2
-rw-r--r--samples/Home/src/com/example/android/home/Home.java3
2 files changed, 2 insertions, 3 deletions
diff --git a/samples/Home/src/com/example/android/home/ApplicationsStackLayout.java b/samples/Home/src/com/example/android/home/ApplicationsStackLayout.java
index ccc1f435b..e4eb6a1b4 100644
--- a/samples/Home/src/com/example/android/home/ApplicationsStackLayout.java
+++ b/samples/Home/src/com/example/android/home/ApplicationsStackLayout.java
@@ -27,10 +27,8 @@ import android.view.View;
import android.view.ViewGroup;
import android.view.LayoutInflater;
import android.widget.TextView;
-import android.*;
import java.util.List;
-import java.util.Map;
/**
* The ApplicationsStackLayout is a specialized layout used for the purpose of the home screen
diff --git a/samples/Home/src/com/example/android/home/Home.java b/samples/Home/src/com/example/android/home/Home.java
index 0d9950857..c23f7b85f 100644
--- a/samples/Home/src/com/example/android/home/Home.java
+++ b/samples/Home/src/com/example/android/home/Home.java
@@ -259,7 +259,8 @@ public class Home extends Activity {
mFavorites = new LinkedList<ApplicationInfo>();
} else {
mFavorites.clear();
- }
+ }
+ mApplicationsStack.setFavorites(mFavorites);
FileReader favReader;