Merge "Merge branch 'stable-2.7'"
This commit is contained in:
@@ -45,13 +45,17 @@ public class Themer {
|
||||
}
|
||||
|
||||
public void set(ThemeInfo theme) {
|
||||
set(theme.css() != null ? theme.css() : cssText,
|
||||
theme.header() != null ? theme.header() : headerHtml,
|
||||
theme.footer() != null ? theme.footer() : footerHtml);
|
||||
if (theme != null) {
|
||||
set(theme.css() != null ? theme.css() : cssText,
|
||||
theme.header() != null ? theme.header() : headerHtml,
|
||||
theme.footer() != null ? theme.footer() : footerHtml);
|
||||
} else {
|
||||
set(cssText, headerHtml, footerHtml);
|
||||
}
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
set(cssText, headerHtml, footerHtml);
|
||||
set(null);
|
||||
}
|
||||
|
||||
void init(Element css, Element header, Element footer) {
|
||||
|
||||
@@ -62,7 +62,7 @@ public abstract class Screen extends View {
|
||||
protected void onUnload() {
|
||||
super.onUnload();
|
||||
if (setTheme) {
|
||||
Gerrit.THEMER.set(null);
|
||||
Gerrit.THEMER.clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user