am 2abd5be3: am 7a5cb3b9: Merge "Guard against callbacks when no list view created" into mnc-dev

* commit '2abd5be388fe29e0a70a4e69f95d6dcc56004a58':
  Guard against callbacks when no list view created
This commit is contained in:
Jason Monk
2015-06-17 13:23:09 +00:00
committed by Android Git Automerger

View File

@@ -148,7 +148,7 @@ public class WifiSettingsForSetupWizard extends WifiSettings {
}
protected void updateFooter(boolean isEmpty) {
if (isEmpty != mListLastEmpty) {
if (isEmpty != mListLastEmpty && hasListView()) {
final ListView list = getListView();
list.removeFooterView(mEmptyFooter);
list.removeFooterView(mAddOtherNetworkItem);