mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 969492 - Use 10% as the load progress reset state. r=lucasr
This commit is contained in:
parent
dc6849d083
commit
21e120c8d1
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user