Skip to content

Commit 09fa1e9

Browse files
committed
Code refactored for code merging.
1 parent 0eb9100 commit 09fa1e9

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

app/src/main/java/com/nextcloud/client/preferences/AppPreferences.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -370,17 +370,15 @@ default void onDarkThemeModeChanged(DarkMode mode) {
370370

371371
void setCalendarLastBackup(long timestamp);
372372

373+
void setOnBoardingComplete(boolean isCompleted);
374+
375+
boolean getOnBoardingComplete();
376+
373377
void setPdfZoomTipShownCount(int count);
374378

375379
int getPdfZoomTipShownCount();
376380

377381
boolean isStoragePermissionRequested();
378382

379383
void setStoragePermissionRequested(boolean value);
380-
381-
/**
382-
* Saves the on-boarding completed flag
383-
*/
384-
void setOnBoardingComplete(boolean isCompleted);
385-
boolean getOnBoardingComplete();
386384
}

app/src/main/java/com/nextcloud/client/preferences/AppPreferencesImpl.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ public final class AppPreferencesImpl implements AppPreferences {
8282
private static final String PREF__FOLDER_SORT_ORDER = "folder_sort_order";
8383
private static final String PREF__FOLDER_LAYOUT = "folder_layout";
8484

85+
private static final String PREF__ON_BOARDING_COMPLETE = "on_boarding_complete";
86+
8587
private static final String PREF__LOCK_TIMESTAMP = "lock_timestamp";
8688
private static final String PREF__SHOW_MEDIA_SCAN_NOTIFICATIONS = "show_media_scan_notifications";
8789
private static final String PREF__LOCK = SettingsActivity.PREFERENCE_LOCK;
@@ -99,8 +101,6 @@ public final class AppPreferencesImpl implements AppPreferences {
99101

100102
private static final String PREF__STORAGE_PERMISSION_REQUESTED = "storage_permission_requested";
101103

102-
private static final String PREF__ON_BOARDING_COMPLETE = "on_boarding_complete";
103-
104104
private final Context context;
105105
private final SharedPreferences preferences;
106106
private final UserAccountManager userAccountManager;
@@ -689,6 +689,16 @@ public void setCalendarLastBackup(long timestamp) {
689689
preferences.edit().putLong(PREF__CALENDAR_LAST_BACKUP, timestamp).apply();
690690
}
691691

692+
@Override
693+
public void setOnBoardingComplete(boolean isCompleted) {
694+
preferences.edit().putBoolean(PREF__ON_BOARDING_COMPLETE, isCompleted).apply();
695+
}
696+
697+
@Override
698+
public boolean getOnBoardingComplete() {
699+
return preferences.getBoolean(PREF__ON_BOARDING_COMPLETE, false);
700+
}
701+
692702
@Override
693703
public void setPdfZoomTipShownCount(int count) {
694704
preferences.edit().putInt(PREF__PDF_ZOOM_TIP_SHOWN, count).apply();
@@ -713,14 +723,4 @@ public void setStoragePermissionRequested(boolean value) {
713723
public int computeBruteForceDelay(int count) {
714724
return (int) Math.min(count / 3d, 10);
715725
}
716-
717-
@Override
718-
public void setOnBoardingComplete(boolean isCompleted) {
719-
preferences.edit().putBoolean(PREF__ON_BOARDING_COMPLETE, isCompleted).apply();
720-
}
721-
722-
@Override
723-
public boolean getOnBoardingComplete() {
724-
return preferences.getBoolean(PREF__ON_BOARDING_COMPLETE, false);
725-
}
726726
}

app/src/main/res/values-de/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@
129129
<string name="common_switch_account">Konto wechseln</string>
130130
<string name="common_switch_to_account">Zu Konto wechseln</string>
131131
<string name="common_yes">Ja</string>
132+
<string name="common_login">Anmelden</string>
132133
<string name="community_beta_headline">Testen Sie die Entwickler-Version</string>
133134
<string name="community_beta_text">Dies beinhaltet neue Funktionalitäten und ist nicht komplett qualitätsgesichert. Es können daher Fehler/Bugs auftreten, melden Sie uns solche bitte.</string>
134135
<string name="community_contribute_forum_forum">Forum</string>
@@ -977,5 +978,4 @@
977978
<item quantity="one">%d ausgewählt</item>
978979
<item quantity="other">%d ausgewählt</item>
979980
</plurals>
980-
<string name="common_login">Anmelden</string>
981981
</resources>

app/src/main/res/values/dimens.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@
2525
<dimen name="login_btn_height">55dp</dimen>
2626
<dimen name="login_btn_bottom_margin">48dp</dimen>
2727
<dimen name="login_btn_bottom_margin_land">48dp</dimen>
28+
<dimen name="login_btn_bottom_margin_small_screen">24dp</dimen>
2829
<dimen name="shared_with_me_icon_size">26dp</dimen>
2930
<dimen name="txt_size_20sp">20sp</dimen>
3031
<dimen name="notification_row_item_height">145dp</dimen>
3132
<dimen name="button_stroke_width">1dp</dimen>
33+
<dimen name="txt_size_13sp">13sp</dimen>
3234
</resources>

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
<string name="common_share">Share</string>
126126
<string name="common_skip">Skip</string>
127127
<string name="common_copy">Copy</string>
128+
<string name="common_login">Login</string>
128129
<string name="about_title">About</string>
129130
<string name="delete_account">Remove account</string>
130131
<string name="delete_account_warning">Remove account %s and delete all local files?\n\nDeletion cannot be undone.</string>
@@ -1077,5 +1078,4 @@
10771078
<string name="document_scan_export_dialog_images">Multiple images</string>
10781079
<string name="download_cannot_create_file">Cannot create local file</string>
10791080
<string name="download_download_invalid_local_file_name">Invalid filename for local file</string>
1080-
<string name="common_login">Login</string>
10811081
</resources>

0 commit comments

Comments
 (0)