Loading src/com/android/settings/datausage/DataUsageList.java +12 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,7 @@ import android.widget.ImageView; import android.widget.Spinner; import androidx.annotation.VisibleForTesting; import androidx.lifecycle.Lifecycle; import androidx.loader.app.LoaderManager.LoaderCallbacks; import androidx.loader.content.Loader; import androidx.preference.Preference; Loading Loading @@ -500,6 +501,17 @@ public class DataUsageList extends DataUsageBaseFragment + cycle.end + "]"); } // Avoid from updating UI after #onStop. if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) { return; } // Avoid from updating UI when async query still on-going. // This could happen when a request from #onMobileDataEnabledChange. if (mCycleData == null) { return; } // update chart to show selected cycle, and update detail data // to match updated sweep bounds. mChart.setNetworkCycleData(mCycleData.get(position)); Loading Loading
src/com/android/settings/datausage/DataUsageList.java +12 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,7 @@ import android.widget.ImageView; import android.widget.Spinner; import androidx.annotation.VisibleForTesting; import androidx.lifecycle.Lifecycle; import androidx.loader.app.LoaderManager.LoaderCallbacks; import androidx.loader.content.Loader; import androidx.preference.Preference; Loading Loading @@ -500,6 +501,17 @@ public class DataUsageList extends DataUsageBaseFragment + cycle.end + "]"); } // Avoid from updating UI after #onStop. if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) { return; } // Avoid from updating UI when async query still on-going. // This could happen when a request from #onMobileDataEnabledChange. if (mCycleData == null) { return; } // update chart to show selected cycle, and update detail data // to match updated sweep bounds. mChart.setNetworkCycleData(mCycleData.get(position)); Loading