mirror of
https://github.com/YTVanced/VancedManager
synced 2025-01-03 06:01:03 +00:00
added strings
This commit is contained in:
parent
cdd00c4f36
commit
c5f4f7a609
4 changed files with 7 additions and 2 deletions
|
@ -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<DialogServicedTimerBinding>()
|
|||
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
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
<TextView
|
||||
android:id="@+id/serviced_header"
|
||||
tools:text="Script Sleep Timer"
|
||||
tools:text="@string/script_sleep_timer"
|
||||
style="@style/DialogCardTitle" />
|
||||
|
||||
<com.google.android.material.slider.Slider
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
android:id="@+id/serviced_timer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:preference_title="Script Sleep Timer"
|
||||
app:preference_title="@string/script_sleep_timer"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<com.vanced.manager.ui.core.EmptyPreference
|
||||
|
|
|
@ -56,6 +56,8 @@
|
|||
<string name="link_title">Use Chrome Custom Tabs</string>
|
||||
<string name="link_custom_tabs">Links will open in Chrome Custom Tabs</string>
|
||||
<string name="system_default">System Default</string>
|
||||
<string name="script_save_failed">Failed to save new timer value</string>
|
||||
<string name="script_sleep_timer">Script Sleep Timer</string>
|
||||
<string name="theme">Theme</string>
|
||||
<string name="theme_dark">Dark Theme</string>
|
||||
<string name="theme_light">Light Theme</string>
|
||||
|
|
Loading…
Reference in a new issue