Add preference for auto-delete

This commit is contained in:
Moez Bhatti
2020-12-20 23:51:01 -05:00
parent df181caf9e
commit 0cfca58350
13 changed files with 157 additions and 15 deletions
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2019 Moez Bhatti <moez.bhatti@gmail.com>
~
~ This file is part of QKSMS.
~
~ QKSMS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ QKSMS is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
-->
<com.moez.QKSMS.common.widget.QkEditText xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/field"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:hint="@string/settings_auto_delete_dialog_hint"
android:inputType="number"
android:lines="1"
android:maxLength="3"
android:padding="24dp"
android:singleLine="true"
android:textStyle="bold"
app:textSize="dialog"
tools:hint="Enter something" />
@@ -177,6 +177,14 @@
app:title="@string/settings_mobile_title"
app:widget="@layout/settings_switch_widget" />
<com.moez.QKSMS.common.widget.PreferenceView
android:id="@+id/autoDelete"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:icon="@drawable/ic_baseline_history_toggle_off_24"
app:title="@string/settings_auto_delete"
tools:summary="Never" />
<com.moez.QKSMS.common.widget.PreferenceView
android:id="@+id/longAsMms"
android:layout_width="match_parent"