SideBySide2: Hide empty pane for added and deleted files

Add new user preference and increase schema version.

Change-Id: I156e9af944ff16d8f85946b40a7998e8c3861d5c
This commit is contained in:
David Ostrovsky
2014-05-01 21:55:00 +02:00
committed by Shawn Pearce
parent e35392e5f4
commit a64d689c6b
12 changed files with 119 additions and 4 deletions

View File

@@ -91,6 +91,7 @@ public class AccountDiffPreference {
p.setShowTabs(true);
p.setContext(DEFAULT_CONTEXT);
p.setManualReview(false);
p.setHideEmptyPane(false);
return p;
}
@@ -152,6 +153,9 @@ public class AccountDiffPreference {
@Column(id = 19, length = 20, notNull = false)
protected String theme;
@Column(id = 20)
protected boolean hideEmptyPane;
protected AccountDiffPreference() {
}
@@ -178,6 +182,7 @@ public class AccountDiffPreference {
this.hideTopMenu = p.hideTopMenu;
this.hideLineNumbers = p.hideLineNumbers;
this.renderEntireFile = p.renderEntireFile;
this.hideEmptyPane = p.hideEmptyPane;
}
public Account.Id getAccountId() {
@@ -330,4 +335,12 @@ public class AccountDiffPreference {
public void setTheme(Theme theme) {
this.theme = theme != null ? theme.name() : null;
}
public boolean isHideEmptyPane() {
return hideEmptyPane;
}
public void setHideEmptyPane(boolean hideEmptyPane) {
this.hideEmptyPane = hideEmptyPane;
}
}