Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 5a95547

Browse files
jainkuniyakunall17
authored andcommitted
Formatted code.
1 parent 6c2b252 commit 5a95547

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

app/src/main/java/com/zulip/android/ZulipApp.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ public void setMessageContentEditParams(int seconds, boolean param) {
604604

605605
/**
606606
* Update preferred theme
607+
*
607608
* @param b true if night theme is preferred
608609
*/
609610
public void makeNightThemeDefault(boolean nightTheme) {
@@ -615,6 +616,7 @@ public void makeNightThemeDefault(boolean nightTheme) {
615616

616617
/**
617618
* update auto night theme preference
619+
*
618620
* @param value preference value
619621
*/
620622
public void setAutoNightTheme(boolean value) {

app/src/main/java/com/zulip/android/activities/ZulipActivity.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,8 @@ protected void onCreate(Bundle savedInstanceState) {
357357
boolean isCurrentThemeNight = (AppCompatDelegate.getDefaultNightMode() == AppCompatDelegate.MODE_NIGHT_YES);
358358

359359
//apply preferred theme
360-
if (app.getSettings().getBoolean(Constants.NIGHT_THEME, false) && !isCurrentThemeNight
361-
&& !app.getSettings().getBoolean(Constants.AUTO_NIGHT_THEME,false)) {
360+
if (app.getSettings().getBoolean(Constants.NIGHT_THEME, false) && !isCurrentThemeNight
361+
&& !app.getSettings().getBoolean(Constants.AUTO_NIGHT_THEME, false)) {
362362
setNightMode(AppCompatDelegate.MODE_NIGHT_YES);
363363
}
364364

@@ -2260,7 +2260,7 @@ public boolean onCreateOptionsMenu(Menu menu) {
22602260
prepareSearchView(menu);
22612261
this.menu = menu;
22622262
menu.findItem(R.id.autoTheme).setChecked(app.getSettings()
2263-
.getBoolean(Constants.AUTO_NIGHT_THEME,false));
2263+
.getBoolean(Constants.AUTO_NIGHT_THEME, false));
22642264
return true;
22652265
}
22662266

@@ -2421,12 +2421,12 @@ public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {
24212421
alertDialog.setMessage(getString(R.string.logout_title));
24222422
alertDialog.setPositiveButton(getString(android.R.string.yes), new DialogInterface.OnClickListener() {
24232423
public void onClick(DialogInterface dialog, int which) {
2424-
logout();
2424+
logout();
24252425
}
24262426
});
24272427
alertDialog.setNegativeButton(getString(android.R.string.no), new DialogInterface.OnClickListener() {
24282428
public void onClick(DialogInterface dialog, int which) {
2429-
dialog.cancel();
2429+
dialog.cancel();
24302430
}
24312431
});
24322432
alertDialog.show();
@@ -2717,6 +2717,7 @@ public MessageListFragment getCurrentMessageList() {
27172717
/**
27182718
* Store floating message header
27192719
* useful when message list get's scrolled
2720+
*
27202721
* @param viewHolder floating message header
27212722
*/
27222723
public void setViewHolder(RecyclerView.ViewHolder viewHolder) {

0 commit comments

Comments
 (0)