Merge "Guard against callbacks when no list view created" into mnc-dev
This commit is contained in:
@@ -148,7 +148,7 @@ public class WifiSettingsForSetupWizard extends WifiSettings {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void updateFooter(boolean isEmpty) {
|
protected void updateFooter(boolean isEmpty) {
|
||||||
if (isEmpty != mListLastEmpty) {
|
if (isEmpty != mListLastEmpty && hasListView()) {
|
||||||
final ListView list = getListView();
|
final ListView list = getListView();
|
||||||
list.removeFooterView(mEmptyFooter);
|
list.removeFooterView(mEmptyFooter);
|
||||||
list.removeFooterView(mAddOtherNetworkItem);
|
list.removeFooterView(mAddOtherNetworkItem);
|
||||||
|
Reference in New Issue
Block a user