Fix NPE in Home sample.

This commit is contained in:
Romain Guy
2009-06-30 10:23:32 -07:00
parent 6c3fa89aad
commit fc614476e4
2 changed files with 2 additions and 3 deletions

View File

@@ -27,10 +27,8 @@ import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.widget.TextView; import android.widget.TextView;
import android.*;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* The ApplicationsStackLayout is a specialized layout used for the purpose of the home screen * The ApplicationsStackLayout is a specialized layout used for the purpose of the home screen

View File

@@ -259,7 +259,8 @@ public class Home extends Activity {
mFavorites = new LinkedList<ApplicationInfo>(); mFavorites = new LinkedList<ApplicationInfo>();
} else { } else {
mFavorites.clear(); mFavorites.clear();
} }
mApplicationsStack.setFavorites(mFavorites);
FileReader favReader; FileReader favReader;