Added an periodical backup to the telegram bot

This commit is contained in:
Mac135135
2024-09-28 19:20:25 +03:00
parent 27d7a6a8cb
commit 49d29ae675
4 changed files with 2 additions and 2 deletions

View File

@@ -43,6 +43,7 @@ class AppSettings @Inject constructor(@ApplicationContext context: Context) {
private val connectivityManager = context.connectivityManager
private val preferences: SharedPreferences = PreferenceManager.getDefaultSharedPreferences(context)
var telegramChatId: String?
get() = preferences.getString("telegram_chat_id", null)
set(value) {

View File

@@ -194,3 +194,4 @@ class PeriodicalBackupSettingsFragment : BasePreferenceFragment(R.string.periodi
return resolveFile(context)?.path ?: toString()
}
}

View File

@@ -151,4 +151,3 @@ class PeriodicalBackupWorker @AssistedInject constructor(
const val DATA_TIMESTAMP = "ts"
}
}

View File

@@ -43,5 +43,4 @@
android:defaultValue=""
android:summary="Enter the chat ID where backups should be sent" />
</androidx.preference.PreferenceScreen>