Delay showing the loading progress spinner in Managed App.
In warm load, the app list is populated much faster, and we should not show the spinner if we can show the app list immediately. Adding 100ms delay in showing the loading container. If the app list is ready, show the list container directly without first showing the loading container. Change-Id: I8b3ea88d2382ece9226d5c7734fd1aa406160cf2 Fix: 36375109 Test: make RunSettingsRoboTests
This commit is contained in:
@@ -943,6 +943,8 @@ public final class Utils extends com.android.settingslib.Utils {
|
||||
return result;
|
||||
}
|
||||
|
||||
// TODO: move this out of Utils to a mixin or a controller or a helper class.
|
||||
@Deprecated
|
||||
public static void handleLoadingContainer(View loading, View doneLoading, boolean done,
|
||||
boolean animate) {
|
||||
setViewShown(loading, !done, animate);
|
||||
|
Reference in New Issue
Block a user