Merge "Fix force close for updating UI after activity destroyed." into main
This commit is contained in:
@@ -368,6 +368,11 @@ public class NetworkSelectSettings extends DashboardFragment {
|
|||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
protected void scanResultHandler(NetworkScanRepository.NetworkScanResult results) {
|
protected void scanResultHandler(NetworkScanRepository.NetworkScanResult results) {
|
||||||
|
if (isFinishingOrDestroyed()) {
|
||||||
|
Log.d(TAG, "scanResultHandler: activity isFinishingOrDestroyed, directly return");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
mCellInfoList = filterOutSatellitePlmn(results.getCellInfos());
|
mCellInfoList = filterOutSatellitePlmn(results.getCellInfos());
|
||||||
Log.d(TAG, "CellInfoList: " + CellInfoUtil.cellInfoListToString(mCellInfoList));
|
Log.d(TAG, "CellInfoList: " + CellInfoUtil.cellInfoListToString(mCellInfoList));
|
||||||
updateAllPreferenceCategory();
|
updateAllPreferenceCategory();
|
||||||
|
Reference in New Issue
Block a user