Pimp settings dialog.

This commit is contained in:
B. Petersen
2017-05-06 15:05:10 +02:00
parent b73b1e430e
commit 8bf5d98d04
3 changed files with 10 additions and 3 deletions
@@ -238,7 +238,9 @@ public class SettingsAdvActivity extends BaseFragment {
if (view == null) {
view = new ShadowSectionCell(mContext);
}
view.setBackgroundResource(i == finalShadowRow? R.drawable.greydivider_bottom : R.drawable.greydivider);
if( i==finalShadowRow ) {
view.setBackgroundResource(R.drawable.greydivider_bottom);
}
} else if (type == ROWTYPE_TEXT_SETTINGS) {
if (view == null) {
view = new TextSettingsCell(mContext);
@@ -85,6 +85,7 @@ public class SettingsNotificationsActivity extends BaseFragment implements Notif
private int badgeNumberRow;
private int repeatRow;
private int resetNotificationsRow;
private int finalShadowRow;
private int rowCount = 0;
private final int TYPE_HEADER = 0;
@@ -123,6 +124,7 @@ public class SettingsNotificationsActivity extends BaseFragment implements Notif
badgeNumberRow = rowCount++;
repeatRow = rowCount++;
resetNotificationsRow = rowCount++;
finalShadowRow = rowCount++;
NotificationCenter.getInstance().addObserver(this, NotificationCenter.notificationsSettingsUpdated);
@@ -643,6 +645,9 @@ public class SettingsNotificationsActivity extends BaseFragment implements Notif
if (view == null) {
view = new ShadowSectionCell(mContext);
}
if( i== finalShadowRow ) {
view.setBackgroundResource(R.drawable.greydivider_bottom);
}
}
return view;
}
@@ -658,7 +663,7 @@ public class SettingsNotificationsActivity extends BaseFragment implements Notif
i == inchatSoundRow ) {
return TYPE_CHECK_CELL;
} else if ( i == groupSectionRow2 ||
i == inappSectionRow2 || i == otherSectionRow2 ) {
i == inappSectionRow2 || i == otherSectionRow2 || i == finalShadowRow ) {
return TYPE_SHADOW;
} else {
return TYPE_TEXTSETTING;
@@ -217,7 +217,7 @@ public class SettingsPrivacyActivity extends BaseFragment {
textCell.setTextAndValue(mContext.getString(R.string.Passcode), val, true);
}
else if( i==manageKeysRow ) {
textCell.setText(mContext.getString(R.string.E2EManagePrivateKeys), true);
textCell.setText(mContext.getString(R.string.E2EManagePrivateKeys), false);
}
} else if (type == TYPE_TEXT_INFO) {
if (view == null) {