From c5f4f7a609052a0dc1f786d3e8e16d0132295e6f Mon Sep 17 00:00:00 2001 From: X1nto Date: Tue, 22 Dec 2020 21:39:09 +0400 Subject: [PATCH] added strings --- .../java/com/vanced/manager/ui/dialogs/ServiceDTimerDialog.kt | 3 +++ app/src/main/res/layout/dialog_serviced_timer.xml | 2 +- app/src/main/res/layout/fragment_settings.xml | 2 +- app/src/main/res/values/strings.xml | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/vanced/manager/ui/dialogs/ServiceDTimerDialog.kt b/app/src/main/java/com/vanced/manager/ui/dialogs/ServiceDTimerDialog.kt index 0534dad2..84a58be0 100644 --- a/app/src/main/java/com/vanced/manager/ui/dialogs/ServiceDTimerDialog.kt +++ b/app/src/main/java/com/vanced/manager/ui/dialogs/ServiceDTimerDialog.kt @@ -3,7 +3,9 @@ package com.vanced.manager.ui.dialogs import android.os.Bundle import android.view.LayoutInflater import android.view.ViewGroup +import android.widget.Toast import androidx.core.content.edit +import com.vanced.manager.R import com.vanced.manager.core.ui.base.BindingDialogFragment import com.vanced.manager.databinding.DialogServicedTimerBinding import com.vanced.manager.utils.Extensions.getDefaultPrefs @@ -41,6 +43,7 @@ class ServiceDTimerDialog : BindingDialogFragment() getPackageDir(requireActivity(), getPkgNameRoot(app))?.let { it1 -> requireActivity().writeServiceDScript(apkFPath, it1, app) } } } catch (e: IOException) { + Toast.makeText(requireActivity(), R.string.script_save_failed, Toast.LENGTH_SHORT).show() return@setOnClickListener } diff --git a/app/src/main/res/layout/dialog_serviced_timer.xml b/app/src/main/res/layout/dialog_serviced_timer.xml index ef47e0f1..26cfa4c0 100644 --- a/app/src/main/res/layout/dialog_serviced_timer.xml +++ b/app/src/main/res/layout/dialog_serviced_timer.xml @@ -11,7 +11,7 @@ Use Chrome Custom Tabs Links will open in Chrome Custom Tabs System Default + Failed to save new timer value + Script Sleep Timer Theme Dark Theme Light Theme