Fix NPE in Home sample.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user