Skip to content

Commit 53c5f54

Browse files
committed
Added settings menu item
1 parent 1d14be9 commit 53c5f54

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/SettingsActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class SettingsActivity : SimpleActivity() {
7171
settings_startup_label,
7272
settings_saving_label,
7373
settings_migrating_label,
74+
settings_backups_label,
7475
).forEach {
7576
it.setTextColor(getProperPrimaryColor())
7677
}

app/src/main/res/layout/activity_settings.xml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,47 @@
386386
android:text="@string/import_notes" />
387387
</RelativeLayout>
388388

389+
<include
390+
android:id="@+id/settings_migrating_divider"
391+
layout="@layout/divider" />
392+
393+
<TextView
394+
android:id="@+id/settings_backups_label"
395+
style="@style/SettingsSectionLabelStyle"
396+
android:layout_width="match_parent"
397+
android:layout_height="wrap_content"
398+
android:text="@string/backups" />
399+
400+
<RelativeLayout
401+
android:id="@+id/settings_enable_automatic_backups_holder"
402+
style="@style/SettingsHolderCheckboxStyle"
403+
android:layout_width="match_parent"
404+
android:layout_height="wrap_content">
405+
406+
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
407+
android:id="@+id/settings_enable_automatic_backups"
408+
style="@style/SettingsCheckboxStyle"
409+
android:layout_width="match_parent"
410+
android:layout_height="wrap_content"
411+
android:text="@string/enable_automatic_backups" />
412+
413+
</RelativeLayout>
414+
415+
<RelativeLayout
416+
android:id="@+id/settings_manage_automatic_backups_holder"
417+
style="@style/SettingsHolderTextViewOneLinerStyle"
418+
android:layout_width="match_parent"
419+
android:layout_height="wrap_content">
420+
421+
<com.simplemobiletools.commons.views.MyTextView
422+
android:id="@+id/settings_manage_automatic_backups"
423+
style="@style/SettingsTextLabelStyle"
424+
android:layout_width="wrap_content"
425+
android:layout_height="wrap_content"
426+
android:text="@string/manage_automatic_backups" />
427+
428+
</RelativeLayout>
429+
389430
</LinearLayout>
390431
</androidx.core.widget.NestedScrollView>
391432
</androidx.coordinatorlayout.widget.CoordinatorLayout>

0 commit comments

Comments
 (0)