Bug 969492 - Use 10% as the load progress reset state. r=lucasr

This commit is contained in:
Brian Nicholson 2014-02-26 11:02:21 -08:00
parent dc6849d083
commit 21e120c8d1
2 changed files with 4 additions and 1 deletions

View File

@ -74,6 +74,7 @@ public class Tab {
public static final int STATE_SUCCESS = 2;
public static final int STATE_ERROR = 3;
public static final int LOAD_PROGRESS_INIT = 10;
public static final int LOAD_PROGRESS_START = 20;
public static final int LOAD_PROGRESS_LOCATION_CHANGE = 60;
public static final int LOAD_PROGRESS_LOADED = 80;
@ -117,6 +118,7 @@ public class Tab {
mPluginViews = new ArrayList<View>();
mPluginLayers = new HashMap<Object, Layer>();
mState = shouldShowProgress(url) ? STATE_SUCCESS : STATE_LOADING;
mLoadProgress = LOAD_PROGRESS_INIT;
// At startup, the background is set to a color specified by LayerView
// when the LayerView is created. Shortly after, this background color

View File

@ -470,8 +470,9 @@ public class BrowserToolbar extends GeckoRelativeLayout
// Progress-related handling
switch (msg) {
case START:
updateProgressVisibility(tab, 0);
updateProgressVisibility(tab, Tab.LOAD_PROGRESS_INIT);
// Fall through.
case ADDED:
case LOCATION_CHANGE:
case LOAD_ERROR:
case LOADED: