commit | 9e8b13ceb0e9304de1b13c7d58224dcde289bb53 | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@android.com> | Wed Jul 01 11:20:04 2009 -0700 |
committer | The Android Open Source Project <initial-contribution@android.com> | Wed Jul 01 11:20:04 2009 -0700 |
tree | ce9298db846c9b5f611244bcebdeadbb2f55b979 | |
parent | ec4b2e3dbb50866d7bbb0000c16ce67ba96e8df5 [diff] | |
parent | fc614476e42b461e5bee40b9ede172b6eec7b5d9 [diff] |
am fc614476: Fix NPE in Home sample. Merge commit 'fc614476e42b461e5bee40b9ede172b6eec7b5d9' * commit 'fc614476e42b461e5bee40b9ede172b6eec7b5d9': Fix NPE in Home sample.
diff --git a/samples/Home/src/com/example/android/home/ApplicationsStackLayout.java b/samples/Home/src/com/example/android/home/ApplicationsStackLayout.java index ccc1f43..e4eb6a1 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.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 0d99508..c23f7b8 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 @@ mFavorites = new LinkedList<ApplicationInfo>(); } else { mFavorites.clear(); - } + } + mApplicationsStack.setFavorites(mFavorites); FileReader favReader;