mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Pimp settings dialog.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user