зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1204875 - Hide Tabs Panel thumbnail height change behind nightly flag; r=mfinkle
--HG-- extra : commitid : HLTX0sA19cF extra : rebase_source : bbf0b9d641cacfe70a40eb1c05397d24e7515e2f extra : amend_source : 1783c53c38e919eb3673028c4f27a3324328d607
This commit is contained in:
Родитель
3b4165cd1e
Коммит
78fde926a3
|
@ -32,7 +32,7 @@ public final class ThumbnailHelper {
|
|||
|
||||
public static final float TABS_PANEL_THUMBNAIL_ASPECT_RATIO = 0.8333333f;
|
||||
public static final float TOP_SITES_THUMBNAIL_ASPECT_RATIO = 0.571428571f; // this is a 4:7 ratio (as per UX decision)
|
||||
private static final float THUMBNAIL_ASPECT_RATIO;
|
||||
public static final float THUMBNAIL_ASPECT_RATIO;
|
||||
|
||||
static {
|
||||
// As we only want to generate one thumbnail for each tab, we calculate the
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
package org.mozilla.gecko.tabs;
|
||||
|
||||
import org.mozilla.gecko.AppConstants;
|
||||
import org.mozilla.gecko.R;
|
||||
import org.mozilla.gecko.ThumbnailHelper;
|
||||
import org.mozilla.gecko.widget.CropImageView;
|
||||
|
@ -34,7 +35,11 @@ public class TabsPanelThumbnailView extends CropImageView {
|
|||
|
||||
@Override
|
||||
protected float getAspectRatio() {
|
||||
return ThumbnailHelper.TABS_PANEL_THUMBNAIL_ASPECT_RATIO;
|
||||
if (AppConstants.NIGHTLY_BUILD) {
|
||||
return ThumbnailHelper.TABS_PANEL_THUMBNAIL_ASPECT_RATIO;
|
||||
} else {
|
||||
return ThumbnailHelper.TOP_SITES_THUMBNAIL_ASPECT_RATIO;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Загрузка…
Ссылка в новой задаче