mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-02-01 19:06:46 +01:00
parent
10c3913fed
commit
db5b553ce8
@ -76,7 +76,7 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:7c1e5b5777'
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:f64d11af6f'
|
||||
implementation 'org.greenrobot:eventbus:3.3.1'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
||||
}
|
||||
|
@ -10,6 +10,7 @@
|
||||
|
||||
<uses-permission android:name="android.permission.FLASHLIGHT" />
|
||||
|
||||
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
|
||||
<uses-permission
|
||||
android:name="android.permission.USE_FINGERPRINT"
|
||||
tools:node="remove" />
|
||||
@ -132,6 +133,9 @@
|
||||
android:resource="@xml/widget_bright_display" />
|
||||
</receiver>
|
||||
|
||||
<receiver android:name=".helpers.ShutDownReceiver"
|
||||
android:exported="false" />
|
||||
|
||||
<service
|
||||
android:name=".helpers.FlashlightTileService"
|
||||
android:exported="true"
|
||||
|
@ -5,11 +5,14 @@ import android.graphics.drawable.ColorDrawable
|
||||
import android.os.Bundle
|
||||
import android.view.WindowManager
|
||||
import com.simplemobiletools.commons.dialogs.ColorPickerDialog
|
||||
import com.simplemobiletools.commons.extensions.applyColorFilter
|
||||
import com.simplemobiletools.commons.extensions.getContrastColor
|
||||
import com.simplemobiletools.commons.extensions.viewBinding
|
||||
import com.simplemobiletools.commons.extensions.*
|
||||
import com.simplemobiletools.flashlight.databinding.ActivityBrightDisplayBinding
|
||||
import com.simplemobiletools.flashlight.extensions.config
|
||||
import com.simplemobiletools.flashlight.helpers.stopSleepTimerCountDown
|
||||
import com.simplemobiletools.flashlight.models.Events
|
||||
import org.greenrobot.eventbus.EventBus
|
||||
import org.greenrobot.eventbus.Subscribe
|
||||
import org.greenrobot.eventbus.ThreadMode
|
||||
|
||||
class BrightDisplayActivity : SimpleActivity() {
|
||||
private val binding by viewBinding(ActivityBrightDisplayBinding::inflate)
|
||||
@ -45,6 +48,8 @@ class BrightDisplayActivity : SimpleActivity() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
binding.sleepTimerStop.setOnClickListener { stopSleepTimer() }
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
@ -60,6 +65,16 @@ class BrightDisplayActivity : SimpleActivity() {
|
||||
toggleBrightness(false)
|
||||
}
|
||||
|
||||
override fun onStart() {
|
||||
super.onStart()
|
||||
EventBus.getDefault().register(this)
|
||||
}
|
||||
|
||||
override fun onStop() {
|
||||
super.onStop()
|
||||
EventBus.getDefault().unregister(this)
|
||||
}
|
||||
|
||||
private fun setBackgroundColor(color: Int) {
|
||||
binding.apply {
|
||||
brightDisplay.background = ColorDrawable(color)
|
||||
@ -77,4 +92,19 @@ class BrightDisplayActivity : SimpleActivity() {
|
||||
layout.screenBrightness = (if (increase) 1 else 0).toFloat()
|
||||
window.attributes = layout
|
||||
}
|
||||
|
||||
private fun stopSleepTimer() {
|
||||
binding.sleepTimerHolder.fadeOut()
|
||||
stopSleepTimerCountDown()
|
||||
}
|
||||
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
fun sleepTimerChanged(event: Events.SleepTimerChanged) {
|
||||
binding.sleepTimerValue.text = event.seconds.getFormattedDuration()
|
||||
binding.sleepTimerHolder.beVisible()
|
||||
|
||||
if (event.seconds == 0) {
|
||||
finish()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,8 @@
|
||||
package com.simplemobiletools.flashlight.activities
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.app.AlarmManager
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.content.pm.ActivityInfo
|
||||
import android.content.pm.ShortcutInfo
|
||||
@ -9,22 +11,22 @@ import android.graphics.drawable.LayerDrawable
|
||||
import android.os.Bundle
|
||||
import android.view.WindowManager
|
||||
import android.widget.ImageView
|
||||
import com.simplemobiletools.commons.dialogs.PermissionRequiredDialog
|
||||
import com.simplemobiletools.commons.dialogs.RadioGroupDialog
|
||||
import com.simplemobiletools.commons.extensions.*
|
||||
import com.simplemobiletools.commons.helpers.LICENSE_EVENT_BUS
|
||||
import com.simplemobiletools.commons.helpers.PERMISSION_CAMERA
|
||||
import com.simplemobiletools.commons.helpers.isNougatMR1Plus
|
||||
import com.simplemobiletools.commons.helpers.isNougatPlus
|
||||
import com.simplemobiletools.commons.helpers.*
|
||||
import com.simplemobiletools.commons.models.FAQItem
|
||||
import com.simplemobiletools.commons.models.RadioItem
|
||||
import com.simplemobiletools.flashlight.BuildConfig
|
||||
import com.simplemobiletools.flashlight.R
|
||||
import com.simplemobiletools.flashlight.databinding.ActivityMainBinding
|
||||
import com.simplemobiletools.flashlight.dialogs.SleepTimerCustomDialog
|
||||
import com.simplemobiletools.flashlight.extensions.config
|
||||
import com.simplemobiletools.flashlight.helpers.CameraTorchListener
|
||||
import com.simplemobiletools.flashlight.helpers.MIN_BRIGHTNESS_LEVEL
|
||||
import com.simplemobiletools.flashlight.helpers.MyCameraImpl
|
||||
import com.simplemobiletools.flashlight.helpers.*
|
||||
import com.simplemobiletools.flashlight.models.Events
|
||||
import org.greenrobot.eventbus.EventBus
|
||||
import org.greenrobot.eventbus.Subscribe
|
||||
import org.greenrobot.eventbus.ThreadMode
|
||||
import java.util.*
|
||||
|
||||
class MainActivity : SimpleActivity() {
|
||||
@ -74,6 +76,8 @@ class MainActivity : SimpleActivity() {
|
||||
stroboscopeBtn.setOnClickListener {
|
||||
toggleStroboscope(false)
|
||||
}
|
||||
|
||||
sleepTimerStop.setOnClickListener { stopSleepTimer() }
|
||||
}
|
||||
|
||||
setupStroboscope()
|
||||
@ -126,6 +130,11 @@ class MainActivity : SimpleActivity() {
|
||||
super.onStart()
|
||||
mBus!!.register(this)
|
||||
|
||||
if (config.sleepInTS == 0L) {
|
||||
binding.sleepTimerHolder.beGone()
|
||||
(getSystemService(Context.ALARM_SERVICE) as AlarmManager).cancel(getShutDownPendingIntent())
|
||||
}
|
||||
|
||||
if (mCameraImpl == null) {
|
||||
setupCameraImpl()
|
||||
}
|
||||
@ -146,6 +155,7 @@ class MainActivity : SimpleActivity() {
|
||||
when (menuItem.itemId) {
|
||||
R.id.more_apps_from_us -> launchMoreAppsFromUsIntent()
|
||||
R.id.settings -> launchSettings()
|
||||
R.id.sleep_timer -> showSleepTimer()
|
||||
R.id.about -> launchAbout()
|
||||
else -> return@setOnMenuItemClickListener false
|
||||
}
|
||||
@ -279,6 +289,76 @@ class MainActivity : SimpleActivity() {
|
||||
mCameraImpl = null
|
||||
}
|
||||
|
||||
private fun showSleepTimer(force: Boolean = false) {
|
||||
val alarmManager = getSystemService(Context.ALARM_SERVICE) as AlarmManager
|
||||
if (isSPlus() && !alarmManager.canScheduleExactAlarms() && !force) {
|
||||
PermissionRequiredDialog(
|
||||
this,
|
||||
com.simplemobiletools.commons.R.string.allow_alarm_sleep_timer,
|
||||
positiveActionCallback = { openRequestExactAlarmSettings(baseConfig.appId) },
|
||||
negativeActionCallback = { showSleepTimer(true) }
|
||||
)
|
||||
return
|
||||
}
|
||||
val minutes = getString(R.string.minutes_raw)
|
||||
val hour = resources.getQuantityString(R.plurals.hours, 1, 1)
|
||||
|
||||
val items = arrayListOf(
|
||||
RadioItem(5 * 60, "5 $minutes"),
|
||||
RadioItem(10 * 60, "10 $minutes"),
|
||||
RadioItem(20 * 60, "20 $minutes"),
|
||||
RadioItem(30 * 60, "30 $minutes"),
|
||||
RadioItem(60 * 60, hour)
|
||||
)
|
||||
|
||||
if (items.none { it.id == config.lastSleepTimerSeconds }) {
|
||||
val lastSleepTimerMinutes = config.lastSleepTimerSeconds / 60
|
||||
val text = resources.getQuantityString(R.plurals.minutes, lastSleepTimerMinutes, lastSleepTimerMinutes)
|
||||
items.add(RadioItem(config.lastSleepTimerSeconds, text))
|
||||
}
|
||||
|
||||
items.sortBy { it.id }
|
||||
items.add(RadioItem(-1, getString(R.string.custom)))
|
||||
|
||||
RadioGroupDialog(this, items, config.lastSleepTimerSeconds) {
|
||||
if (it as Int == -1) {
|
||||
SleepTimerCustomDialog(this) {
|
||||
if (it > 0) {
|
||||
pickedSleepTimer(it)
|
||||
}
|
||||
}
|
||||
} else if (it > 0) {
|
||||
pickedSleepTimer(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun pickedSleepTimer(seconds: Int) {
|
||||
config.lastSleepTimerSeconds = seconds
|
||||
config.sleepInTS = System.currentTimeMillis() + seconds * 1000
|
||||
startSleepTimer()
|
||||
}
|
||||
|
||||
private fun startSleepTimer() {
|
||||
binding.sleepTimerHolder.fadeIn()
|
||||
startSleepTimerCountDown()
|
||||
}
|
||||
|
||||
private fun stopSleepTimer() {
|
||||
binding.sleepTimerHolder.fadeOut()
|
||||
stopSleepTimerCountDown()
|
||||
}
|
||||
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
fun sleepTimerChanged(event: Events.SleepTimerChanged) {
|
||||
binding.sleepTimerValue.text = event.seconds.getFormattedDuration()
|
||||
binding.sleepTimerHolder.beVisible()
|
||||
|
||||
if (event.seconds == 0) {
|
||||
finish()
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
fun stateChangedEvent(event: Events.StateChanged) {
|
||||
checkState(event.isEnabled)
|
||||
|
@ -0,0 +1,33 @@
|
||||
package com.simplemobiletools.flashlight.dialogs
|
||||
|
||||
import android.app.Activity
|
||||
import androidx.appcompat.app.AlertDialog
|
||||
import com.simplemobiletools.commons.extensions.*
|
||||
import com.simplemobiletools.flashlight.R
|
||||
import com.simplemobiletools.flashlight.databinding.DialogCustomSleepTimerPickerBinding
|
||||
|
||||
class SleepTimerCustomDialog(val activity: Activity, val callback: (seconds: Int) -> Unit) {
|
||||
private var dialog: AlertDialog? = null
|
||||
private val binding = DialogCustomSleepTimerPickerBinding.inflate(activity.layoutInflater)
|
||||
|
||||
init {
|
||||
binding.minutesHint.hint = activity.getString(R.string.minutes_raw).replaceFirstChar { it.uppercaseChar() }
|
||||
activity.getAlertDialogBuilder()
|
||||
.setPositiveButton(R.string.ok) { dialog, which -> dialogConfirmed() }
|
||||
.setNegativeButton(R.string.cancel, null)
|
||||
.apply {
|
||||
activity.setupDialogStuff(binding.root, this, R.string.sleep_timer) { alertDialog ->
|
||||
dialog = alertDialog
|
||||
alertDialog.showKeyboard(binding.minutes)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun dialogConfirmed() {
|
||||
val value = binding.minutes.value
|
||||
val minutes = Integer.valueOf(if (value.isEmpty()) "0" else value)
|
||||
callback(minutes * 60)
|
||||
activity.hideKeyboard()
|
||||
dialog?.dismiss()
|
||||
}
|
||||
}
|
@ -44,4 +44,12 @@ class Config(context: Context) : BaseConfig(context) {
|
||||
var brightnessLevel: Int
|
||||
get() = prefs.getInt(BRIGHTNESS_LEVEL, DEFAULT_BRIGHTNESS_LEVEL)
|
||||
set(brightnessLevel) = prefs.edit().putInt(BRIGHTNESS_LEVEL, brightnessLevel).apply()
|
||||
|
||||
var lastSleepTimerSeconds: Int
|
||||
get() = prefs.getInt(LAST_SLEEP_TIMER_SECONDS, 30 * 60)
|
||||
set(lastSleepTimerSeconds) = prefs.edit().putInt(LAST_SLEEP_TIMER_SECONDS, lastSleepTimerSeconds).apply()
|
||||
|
||||
var sleepInTS: Long
|
||||
get() = prefs.getLong(SLEEP_IN_TS, 0)
|
||||
set(sleepInTS) = prefs.edit().putLong(SLEEP_IN_TS, sleepInTS).apply()
|
||||
}
|
||||
|
@ -12,5 +12,7 @@ const val STROBOSCOPE_PROGRESS = "stroboscope_progress"
|
||||
const val FORCE_PORTRAIT_MODE = "force_portrait_mode"
|
||||
const val SOS = "sos"
|
||||
const val BRIGHTNESS_LEVEL = "brightness_level"
|
||||
const val LAST_SLEEP_TIMER_SECONDS = "last_sleep_timer_seconds"
|
||||
const val SLEEP_IN_TS = "sleep_in_ts"
|
||||
const val MIN_BRIGHTNESS_LEVEL = 1
|
||||
const val DEFAULT_BRIGHTNESS_LEVEL = -1
|
||||
|
@ -0,0 +1,12 @@
|
||||
package com.simplemobiletools.flashlight.helpers
|
||||
|
||||
import android.content.BroadcastReceiver
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import kotlin.system.exitProcess
|
||||
|
||||
class ShutDownReceiver : BroadcastReceiver() {
|
||||
override fun onReceive(p0: Context?, p1: Intent?) {
|
||||
exitProcess(0)
|
||||
}
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
package com.simplemobiletools.flashlight.helpers
|
||||
|
||||
import android.app.AlarmManager
|
||||
import android.app.PendingIntent
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.os.CountDownTimer
|
||||
import com.simplemobiletools.commons.helpers.isSPlus
|
||||
import com.simplemobiletools.flashlight.extensions.config
|
||||
import com.simplemobiletools.flashlight.models.Events
|
||||
import org.greenrobot.eventbus.EventBus
|
||||
import kotlin.system.exitProcess
|
||||
|
||||
private var isActive = false
|
||||
private var sleepTimer: CountDownTimer? = null
|
||||
|
||||
internal fun Context.toggleSleepTimer() {
|
||||
if (isActive) {
|
||||
stopSleepTimerCountDown()
|
||||
} else {
|
||||
startSleepTimerCountDown()
|
||||
}
|
||||
}
|
||||
|
||||
internal fun Context.startSleepTimerCountDown() {
|
||||
val millisInFuture = config.sleepInTS - System.currentTimeMillis() + 1000L
|
||||
(getSystemService(Context.ALARM_SERVICE) as AlarmManager).apply {
|
||||
if (!isSPlus() || canScheduleExactAlarms()) {
|
||||
setExactAndAllowWhileIdle(
|
||||
AlarmManager.RTC_WAKEUP,
|
||||
config.sleepInTS,
|
||||
getShutDownPendingIntent()
|
||||
)
|
||||
} else {
|
||||
setAndAllowWhileIdle(
|
||||
AlarmManager.RTC_WAKEUP,
|
||||
config.sleepInTS,
|
||||
getShutDownPendingIntent()
|
||||
)
|
||||
}
|
||||
}
|
||||
sleepTimer?.cancel()
|
||||
sleepTimer = object : CountDownTimer(millisInFuture, 1000) {
|
||||
override fun onTick(millisUntilFinished: Long) {
|
||||
val seconds = (millisUntilFinished / 1000).toInt()
|
||||
EventBus.getDefault().post(Events.SleepTimerChanged(seconds))
|
||||
}
|
||||
|
||||
override fun onFinish() {
|
||||
config.sleepInTS = 0
|
||||
EventBus.getDefault().post(Events.SleepTimerChanged(0))
|
||||
stopSleepTimerCountDown()
|
||||
exitProcess(0)
|
||||
}
|
||||
}
|
||||
|
||||
sleepTimer?.start()
|
||||
isActive = true
|
||||
}
|
||||
|
||||
internal fun Context.stopSleepTimerCountDown() {
|
||||
(getSystemService(Context.ALARM_SERVICE) as AlarmManager).cancel(getShutDownPendingIntent())
|
||||
sleepTimer?.cancel()
|
||||
sleepTimer = null
|
||||
isActive = false
|
||||
config.sleepInTS = 0
|
||||
}
|
||||
|
||||
internal fun Context.getShutDownPendingIntent() =
|
||||
PendingIntent.getBroadcast(this, 0, Intent(this, ShutDownReceiver::class.java), PendingIntent.FLAG_IMMUTABLE)
|
@ -8,4 +8,6 @@ class Events {
|
||||
class StopStroboscope
|
||||
|
||||
class StopSOS
|
||||
|
||||
class SleepTimerChanged(val seconds: Int)
|
||||
}
|
||||
|
@ -1,5 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/bright_display_holder"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
@ -19,4 +21,71 @@
|
||||
android:alpha="0.5"
|
||||
android:text="@string/change_color" />
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/sleep_timer_holder"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/default_background_color"
|
||||
android:clickable="true"
|
||||
android:visibility="gone"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
tools:visibility="visible">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/sleep_timer_divider_top"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1px"
|
||||
android:background="@color/divider_grey"
|
||||
app:layout_constraintBottom_toTopOf="@+id/sleep_timer_stop"
|
||||
app:layout_constraintEnd_toEndOf="@+id/sleep_timer_stop"
|
||||
app:layout_constraintStart_toStartOf="@+id/sleep_timer_label" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/sleep_timer_divider_start"
|
||||
android:layout_width="1px"
|
||||
android:layout_height="0dp"
|
||||
android:background="@color/divider_grey"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/sleep_timer_stop"
|
||||
app:layout_constraintStart_toStartOf="@+id/sleep_timer_label"
|
||||
app:layout_constraintTop_toTopOf="@+id/sleep_timer_stop" />
|
||||
|
||||
<com.simplemobiletools.commons.views.MyTextView
|
||||
android:id="@+id/sleep_timer_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:paddingStart="@dimen/normal_margin"
|
||||
android:paddingEnd="@dimen/normal_margin"
|
||||
android:text="@string/sleep_timer"
|
||||
android:textSize="@dimen/big_text_size"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/sleep_timer_stop"
|
||||
app:layout_constraintEnd_toStartOf="@+id/sleep_timer_value"
|
||||
app:layout_constraintTop_toTopOf="@+id/sleep_timer_stop" />
|
||||
|
||||
<com.simplemobiletools.commons.views.MyTextView
|
||||
android:id="@+id/sleep_timer_value"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="00:00"
|
||||
android:textSize="@dimen/big_text_size"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/sleep_timer_stop"
|
||||
app:layout_constraintEnd_toStartOf="@+id/sleep_timer_stop"
|
||||
app:layout_constraintTop_toTopOf="@+id/sleep_timer_stop"
|
||||
tools:ignore="HardcodedText" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/sleep_timer_stop"
|
||||
android:layout_width="@dimen/normal_icon_size"
|
||||
android:layout_height="@dimen/normal_icon_size"
|
||||
android:layout_marginStart="@dimen/tiny_margin"
|
||||
android:layout_marginEnd="@dimen/tiny_margin"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:padding="@dimen/medium_margin"
|
||||
android:src="@drawable/ic_cross_vector"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout 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/main_coordinator"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
@ -111,6 +112,72 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/stroboscope_btn" />
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/sleep_timer_holder"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/default_background_color"
|
||||
android:clickable="true"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
tools:visibility="visible">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/sleep_timer_divider_top"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1px"
|
||||
android:background="@color/divider_grey"
|
||||
app:layout_constraintBottom_toTopOf="@+id/sleep_timer_stop"
|
||||
app:layout_constraintEnd_toEndOf="@+id/sleep_timer_stop"
|
||||
app:layout_constraintStart_toStartOf="@+id/sleep_timer_label" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/sleep_timer_divider_start"
|
||||
android:layout_width="1px"
|
||||
android:layout_height="0dp"
|
||||
android:background="@color/divider_grey"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/sleep_timer_stop"
|
||||
app:layout_constraintStart_toStartOf="@+id/sleep_timer_label"
|
||||
app:layout_constraintTop_toTopOf="@+id/sleep_timer_stop" />
|
||||
|
||||
<com.simplemobiletools.commons.views.MyTextView
|
||||
android:id="@+id/sleep_timer_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:paddingStart="@dimen/normal_margin"
|
||||
android:paddingEnd="@dimen/normal_margin"
|
||||
android:text="@string/sleep_timer"
|
||||
android:textSize="@dimen/big_text_size"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/sleep_timer_stop"
|
||||
app:layout_constraintEnd_toStartOf="@+id/sleep_timer_value"
|
||||
app:layout_constraintTop_toTopOf="@+id/sleep_timer_stop" />
|
||||
|
||||
<com.simplemobiletools.commons.views.MyTextView
|
||||
android:id="@+id/sleep_timer_value"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="00:00"
|
||||
android:textSize="@dimen/big_text_size"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/sleep_timer_stop"
|
||||
app:layout_constraintEnd_toStartOf="@+id/sleep_timer_stop"
|
||||
app:layout_constraintTop_toTopOf="@+id/sleep_timer_stop"
|
||||
tools:ignore="HardcodedText" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/sleep_timer_stop"
|
||||
android:layout_width="@dimen/normal_icon_size"
|
||||
android:layout_height="@dimen/normal_icon_size"
|
||||
android:layout_marginStart="@dimen/tiny_margin"
|
||||
android:layout_marginEnd="@dimen/tiny_margin"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:padding="@dimen/medium_margin"
|
||||
android:src="@drawable/ic_cross_vector"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
|
30
app/src/main/res/layout/dialog_custom_sleep_timer_picker.xml
Normal file
30
app/src/main/res/layout/dialog_custom_sleep_timer_picker.xml
Normal file
@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/dialog_custom_sleep_timer_holder"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="@dimen/activity_margin"
|
||||
android:paddingTop="@dimen/activity_margin"
|
||||
android:paddingRight="@dimen/activity_margin">
|
||||
|
||||
<com.simplemobiletools.commons.views.MyTextInputLayout
|
||||
android:id="@+id/minutes_hint"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/minutes_raw">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/minutes"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/activity_margin"
|
||||
android:digits="0123456789"
|
||||
android:inputType="number"
|
||||
android:maxLength="5"
|
||||
android:singleLine="true"
|
||||
android:textCursorDrawable="@null"
|
||||
android:textSize="@dimen/normal_text_size" />
|
||||
|
||||
</com.simplemobiletools.commons.views.MyTextInputLayout>
|
||||
</LinearLayout>
|
@ -13,6 +13,10 @@
|
||||
android:icon="@drawable/ic_info_vector"
|
||||
android:title="@string/about"
|
||||
app:showAsAction="always" />
|
||||
<item
|
||||
android:id="@+id/sleep_timer"
|
||||
android:title="@string/sleep_timer"
|
||||
app:showAsAction="never" />
|
||||
<item
|
||||
android:id="@+id/more_apps_from_us"
|
||||
android:title="@string/more_apps_from_us"
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">فشل الحصول على الكاميرا</string>
|
||||
<string name="camera_permission">الحصول على إذن تصوير ضروري للتأثيرات</string>
|
||||
<string name="bright_display">شاشة ساطعة</string>
|
||||
<string name="sleep_timer">مؤقت النوم</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">إظهار زر عرض ساطع</string>
|
||||
<string name="show_stroboscope">إظهار زر ستروبوسكوب</string>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Kamera əlçatan deyil</string>
|
||||
<string name="camera_permission">Düzgün strob effekti üçün kamera icazəsi gərəkdir</string>
|
||||
<string name="bright_display">Bright display</string>
|
||||
<string name="sleep_timer">Sleep timer</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">İşıqlı ekran düyməsi göstər</string>
|
||||
<string name="show_stroboscope">Stroboskop düyməsi göstər</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Не атрымалася атрымаць камеру</string>
|
||||
<string name="camera_permission">Дазвол на доступ да камеры неабходны для стварэння эфекту страбаскопа</string>
|
||||
<string name="bright_display">Яркі экран</string>
|
||||
<string name="sleep_timer">Таймер сну</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Паказваць кнопку яркага экрана</string>
|
||||
<string name="show_stroboscope">Паказваць кнопку страбаскопа</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Неуспешен достъп до камера</string>
|
||||
<string name="camera_permission">Разрешение за използване на камерата е необходимо за постигане на подходящ стробоскопичен ефект</string>
|
||||
<string name="bright_display">Ярък дисплей</string>
|
||||
<string name="sleep_timer">Таймер за заспиване</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Покажи ярък дисплей бутон</string>
|
||||
<string name="show_stroboscope">Покажи стробинг бутон</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Ha fallat l\'accés a la càmera</string>
|
||||
<string name="camera_permission">És necessari el permís de la càmera per a un efecte estroboscòpic adequat</string>
|
||||
<string name="bright_display">Pantalla lluminosa</string>
|
||||
<string name="sleep_timer">Temporitzador per adormir-se</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Mostra un botó de pantalla lluminosa</string>
|
||||
<string name="show_stroboscope">Mostra un botó d\'estroboscopi</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Přístup k fotoaparátu se nezdařil</string>
|
||||
<string name="camera_permission">Přístup k fotoaparátu je potřebný pro správný stroboskopický efekt</string>
|
||||
<string name="bright_display">Jasný displej</string>
|
||||
<string name="sleep_timer">Časovač vypnutí</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Zobrazit tlačítko pro jasný displej</string>
|
||||
<string name="show_stroboscope">Zobrazit tlačítko pro stroboskop</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Methwyd cael at y camera</string>
|
||||
<string name="camera_permission">Rhaid cael caniatâd y camera i\'r effaith strobosgop</string>
|
||||
<string name="bright_display">Bright display</string>
|
||||
<string name="sleep_timer">Sleep timer</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Dangos botwm dangosydd llachar</string>
|
||||
<string name="show_stroboscope">Dangos botwm strobosgop</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Forbindelse til kameraet mislykkedes</string>
|
||||
<string name="camera_permission">Kameratilladelse er nødvendig for korrekt stroboskopeffekt</string>
|
||||
<string name="bright_display">Lyst display</string>
|
||||
<string name="sleep_timer">Timer til slumretilstand</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Vis en lys skærmknap</string>
|
||||
<string name="show_stroboscope">Vis en stroboskop-knap</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Beanspruchen der Kamera fehlgeschlagen</string>
|
||||
<string name="camera_permission">Kameraberechtigung ist für den Stroboskopeffekt erforderlich</string>
|
||||
<string name="bright_display">Heller Bildschirm</string>
|
||||
<string name="sleep_timer">Sleeptimer</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Schaltfläche für hellen Bildschirm zeigen</string>
|
||||
<string name="show_stroboscope">Schaltfläche für Stroboskop zeigen</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Η εύρεση της κάμερας απέτυχε</string>
|
||||
<string name="camera_permission">Χρειάζεται άδεια χρήσης της κάμερας για τη σωστή λειτουργία στροβοσκοπίου</string>
|
||||
<string name="bright_display">Φωτεινή οθόνη</string>
|
||||
<string name="sleep_timer">Χρονοδιακόπτης</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Προβολή κουμπιού φωτεινότητας</string>
|
||||
<string name="show_stroboscope">Προβολή κουμπιού στροβοσκοπίου</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Obtaining the camera failed</string>
|
||||
<string name="camera_permission">Camera permission is necessary for proper stroboscope effect</string>
|
||||
<string name="bright_display">Hela ekrano</string>
|
||||
<string name="sleep_timer">Sleep timer</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Montri butonon por hela ekrano</string>
|
||||
<string name="show_stroboscope">Show a stroboscope button</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Ha fallado el acceso a la cámara</string>
|
||||
<string name="camera_permission">El permiso de acceso a la cámara es necesario para un apropiado efecto estroboscópico</string>
|
||||
<string name="bright_display">Pantalla brillante</string>
|
||||
<string name="sleep_timer">Temporizador</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Mostrar botón de pantalla brillante</string>
|
||||
<string name="show_stroboscope">Mostrar botón de estroboscopio</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Kaamera liidestamine ei õnnestunud</string>
|
||||
<string name="camera_permission">Toimiva stroboskoopilise efekti jaoks on vajalik kaamera kasutamise luba</string>
|
||||
<string name="bright_display">Kirgas ekraan</string>
|
||||
<string name="sleep_timer">Unetaimer</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Näita nuppu ekraanil kirkana</string>
|
||||
<string name="show_stroboscope">Näita stroboskoobi nuppu</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Kameran saanti epäonnistui</string>
|
||||
<string name="camera_permission">Lupa kameraan vaaditaan oikean stroboskooppisen vaikutuksen saavuttamiseksi</string>
|
||||
<string name="bright_display">Kirkas näyttö</string>
|
||||
<string name="sleep_timer">Uniajastin</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Näytä kirkas näyttö -painike</string>
|
||||
<string name="show_stroboscope">Näytä stroboskooppipainike</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Échec de l\'obtention de l\'appareil photo</string>
|
||||
<string name="camera_permission">L\'autorisation d\'accès à l\'appareil photo est nécessaire pour un effet stroboscope correct</string>
|
||||
<string name="bright_display">Affichage lumineux</string>
|
||||
<string name="sleep_timer">Minuterie de veille</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Afficher un bouton écran lumineux</string>
|
||||
<string name="show_stroboscope">Afficher un bouton stroboscope</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Erro ao obter a cámara</string>
|
||||
<string name="camera_permission">O permiso da cámara é necesario para utilizar o efecto estroboscopio</string>
|
||||
<string name="bright_display">Pantalla brillante</string>
|
||||
<string name="sleep_timer">Temporizador</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Mostrar un botón para iluminala pantalla</string>
|
||||
<string name="show_stroboscope">Mostrar un botón estroboscopio</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Nije moguće pristupiti kameri</string>
|
||||
<string name="camera_permission">Potrebna je dozvola za pristup kameri za pravilan stroboskopski efekt</string>
|
||||
<string name="bright_display">Svijetli ekran</string>
|
||||
<string name="sleep_timer">Mjerač vremena za isključivanje</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Prikaži gumb za svijetli ekran</string>
|
||||
<string name="show_stroboscope">Prikaži gumb za stroboskop</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">A kamera megszerzése sikertelen</string>
|
||||
<string name="camera_permission">A Kamera engedély szükséges a megfelelő stroboszkóp hatáshoz</string>
|
||||
<string name="bright_display">Fényes kijelző</string>
|
||||
<string name="sleep_timer">Alvásidőzítő</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Fényes kijelző gomb megjelenítése</string>
|
||||
<string name="show_stroboscope">Stroboszkóp gomb megjelenítése</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Gagal mendapatkan kamera</string>
|
||||
<string name="camera_permission">Izin kamera diperlukan untuk efek stroboscope yang tepat</string>
|
||||
<string name="bright_display">Layar cerah</string>
|
||||
<string name="sleep_timer">Timer tidur</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Tampilkan tombol tampilan cerah</string>
|
||||
<string name="show_stroboscope">Tampilkan tombol stroboscope</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Obtaining the camera failed</string>
|
||||
<string name="camera_permission">Camera permission is necessary for proper stroboscope effect</string>
|
||||
<string name="bright_display">Bright display</string>
|
||||
<string name="sleep_timer">Tímarofi</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Show a bright display button</string>
|
||||
<string name="show_stroboscope">Show a stroboscope button</string>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Impossibile rilevare la fotocamera</string>
|
||||
<string name="camera_permission">Il permesso per la fotocamera è necessario per l\'effetto stroboscopico</string>
|
||||
<string name="bright_display">Schermo luminoso</string>
|
||||
<string name="sleep_timer">Timer di spegnimento</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Mostra un pulsante per lo schermo luminoso</string>
|
||||
<string name="show_stroboscope">Mostra un pulsante per l\'effetto stroboscopico</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">השגת המצלמה נכשלה</string>
|
||||
<string name="camera_permission">הרשאת מצלמה נחוצה לאפקט סטרובוסקופ תקין</string>
|
||||
<string name="bright_display">תצוגה בהירה</string>
|
||||
<string name="sleep_timer">טיימר שינה</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">הצג כפתור תצוגה בהיר</string>
|
||||
<string name="show_stroboscope">הצג כפתור סטרובוסקופ</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">カメラの取得に失敗しました</string>
|
||||
<string name="camera_permission">適切なストロボ効果のために、カメラのアクセス許可が必要です</string>
|
||||
<string name="bright_display">明るい画面</string>
|
||||
<string name="sleep_timer">スリープタイマー</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">明るく表示ボタンを表示</string>
|
||||
<string name="show_stroboscope">ストロボボタンを表示</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">카메라 취득 실패</string>
|
||||
<string name="camera_permission">적절한 스트로보 스코프 효과를 얻으려면 카메라 사용 권한이 필요합니다.</string>
|
||||
<string name="bright_display">Bright display</string>
|
||||
<string name="sleep_timer">취침 타이머</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">브라이트 디스플레이 버튼 활성화</string>
|
||||
<string name="show_stroboscope">스트로보 스코프 버튼 활성화</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Nepavyko gauti prieigos prie kameros</string>
|
||||
<string name="camera_permission">Fotoaparato leidimas yra būtinas tinkamam stroboskopo efektui</string>
|
||||
<string name="bright_display">Ryškus ekranas</string>
|
||||
<string name="sleep_timer">Miego laikmatis</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Rodyti ryškaus ekrano mygtuką</string>
|
||||
<string name="show_stroboscope">Rodyti stroboskopo mygtuką</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">ക്യാമറ നേടുന്നത് പരാജയപ്പെട്ടു</string>
|
||||
<string name="camera_permission">ശരിയായ സ്ട്രോബോസ്കോപ്പിക് ഇഫക്റ്റിന് ക്യാമറ അനുമതി ആവശ്യമാണ്</string>
|
||||
<string name="bright_display">ബ്രൈറ്റ് ഡിസ്പ്ലേ</string>
|
||||
<string name="sleep_timer">Sleep timer</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">ബ്രൈറ്റ് ഡിസ്പ്ലേ ബട്ടൺ കാണിക്കുക</string>
|
||||
<string name="show_stroboscope">ഒരു സ്ട്രോബോസ്കോപ്പ് ബട്ടൺ കാണിക്കുക</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">ကင်မရာနှင့်ပတ်သတ်သောအချို့အယွင်း</string>
|
||||
<string name="camera_permission">အချက်ပြမီးလုပ်ဆောင်မှုအတွက် ကင်မရာခွင့်ပြုချက်လိုအပ်ပါသည်</string>
|
||||
<string name="bright_display">မှန်သားပြင်အလင်း</string>
|
||||
<string name="sleep_timer">Sleep timer</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">မှန်သားပြင်အလင်း ခလုတ်ပြပါ</string>
|
||||
<string name="show_stroboscope">အချက်ပြမီး ခလုတ် ပြပါ</string>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Obtaining the camera failed</string>
|
||||
<string name="camera_permission">Kameratillatelse er nødvendig for riktig stroboskopeffekt</string>
|
||||
<string name="bright_display">Lys skjerm</string>
|
||||
<string name="sleep_timer">Søvntidsur</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Vis en lys skjermknapp</string>
|
||||
<string name="show_stroboscope">Vis en stroboskop-knapp</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Toegang tot de camera geweigerd</string>
|
||||
<string name="camera_permission">De permissie Camera is nodig voor het stroboscoopeffect</string>
|
||||
<string name="bright_display">Fel scherm</string>
|
||||
<string name="sleep_timer">Slaaptimer</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Knop voor fel scherm tonen</string>
|
||||
<string name="show_stroboscope">Knop voor stroboscoop tonen</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">کیمرہ پہنچ نہیں سکدا</string>
|
||||
<string name="camera_permission">سٹروبوسکوپ لئی کیمرہ دی اِجازت ضروری اے</string>
|
||||
<string name="bright_display">چمکدار ڈیسپلے</string>
|
||||
<string name="sleep_timer">سوتے دی گھڑی</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">چمکدار ڈیسپلے بٹن دکھاؤ</string>
|
||||
<string name="show_stroboscope">سٹروبوسکوپ بٹن دکھاؤ</string>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Nie udało się uzyskać dostępu do aparatu</string>
|
||||
<string name="camera_permission">Dostęp do aparatu jest niezbędny dla prawidłowego efektu stroboskopowego</string>
|
||||
<string name="bright_display">Jasny wyświetlacz</string>
|
||||
<string name="sleep_timer">Wyłącznik czasowy</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Pokazuj przycisk jasnego wyświetlacza</string>
|
||||
<string name="show_stroboscope">Pokazuj przycisk stroboskopu</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Erro ao obter a câmera</string>
|
||||
<string name="camera_permission">A permissão para a câmera é necessária para usar o estroboscópio</string>
|
||||
<string name="bright_display">Tela brilhante</string>
|
||||
<string name="sleep_timer">Temporizador de sono</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Mostrar o botão de tela brilhante</string>
|
||||
<string name="show_stroboscope">Mostrar o botão do Estroboscópio</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Falha no acesso à câmera</string>
|
||||
<string name="camera_permission">O efeito estroboscópico requer a permissão da câmara</string>
|
||||
<string name="bright_display">Ecrã luminoso</string>
|
||||
<string name="sleep_timer">Sleep timer</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Mostrar botão de ecrã luminoso</string>
|
||||
<string name="show_stroboscope">Mostrar botão do estroboscópio</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Falha ao aceder à câmera</string>
|
||||
<string name="camera_permission">O efeito estroboscópio requer a permissão da câmara</string>
|
||||
<string name="bright_display">Ecrã luminoso</string>
|
||||
<string name="sleep_timer">Temporizador</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Mostrar botão de ecrã luminoso</string>
|
||||
<string name="show_stroboscope">Mostrar botão do estroboscópio</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Obținerea camerei a eșuat</string>
|
||||
<string name="camera_permission">Permisul camerei este necesar pentru un efect stroboscopic adecvat</string>
|
||||
<string name="bright_display">Ecran luminos</string>
|
||||
<string name="sleep_timer">Temporizator de somn</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Afișaţi un buton pentru ecran luminos</string>
|
||||
<string name="show_stroboscope">Afișaţi un buton pentru stroboscop</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Не удалось получить доступ к камере</string>
|
||||
<string name="camera_permission">Разрешение на доступ к камере необходимо для создания эффекта стробоскопа</string>
|
||||
<string name="bright_display">Яркий экран</string>
|
||||
<string name="sleep_timer">Таймер сна</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Показать кнопку яркого экрана</string>
|
||||
<string name="show_stroboscope">Показать кнопку стробоскопа</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Prístup ku kamere zlyhal Obtaining the camera failed</string>
|
||||
<string name="camera_permission">Pre správny stroboskopický efekt je potrebný prístup ku kamere</string>
|
||||
<string name="bright_display">Jasný displej</string>
|
||||
<string name="sleep_timer">Časovač vypnutia</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Zobraziť tlačidlo pre jasný displej</string>
|
||||
<string name="show_stroboscope">Zobraziť tlačidlo pre stroboskop</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Pridobivanje kamere ni uspelo</string>
|
||||
<string name="camera_permission">Za ustrezen učinek stroboskopa je pogoj dovoljenje kamere</string>
|
||||
<string name="bright_display">Svetli zaslon</string>
|
||||
<string name="sleep_timer">Časovnik za spanje</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Pokažite gumb za svetel zaslon</string>
|
||||
<string name="show_stroboscope">Prikaži gumb stroboskopa</string>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Добијање камере није успело</string>
|
||||
<string name="camera_permission">Дозвола камере је неопходна за правилан ефекат стробоскопа</string>
|
||||
<string name="bright_display">Светао екран</string>
|
||||
<string name="sleep_timer">Мерач спавања</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Прикажи светло дугме за екран</string>
|
||||
<string name="show_stroboscope">Прикажи дугме за стробоскоп</string>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Det gick inte att komma åt kameran</string>
|
||||
<string name="camera_permission">Kamerabehörigheten behövs för en riktig stroboskopeffekt</string>
|
||||
<string name="bright_display">Ljus skärm</string>
|
||||
<string name="sleep_timer">Insomningstimer</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Visa en knapp för ljus skärm</string>
|
||||
<string name="show_stroboscope">Visa en stroboskopknapp</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Obtaining the camera failed</string>
|
||||
<string name="camera_permission">Camera permission is necessary for proper stroboscope effect</string>
|
||||
<string name="bright_display">Bright display</string>
|
||||
<string name="sleep_timer">Sleep timer</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Show a bright display button</string>
|
||||
<string name="show_stroboscope">Show a stroboscope button</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Kamera hatası</string>
|
||||
<string name="camera_permission">Düzgün stroboskop etkisi için kamera izni gereklidir</string>
|
||||
<string name="bright_display">Parlak ekran</string>
|
||||
<string name="sleep_timer">Uyku zamanlayıcısı</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Parlak ekran düğmesini göster</string>
|
||||
<string name="show_stroboscope">Stroboskop düğmesini göster</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Не вдалося отримати доступ до камери</string>
|
||||
<string name="camera_permission">Дозвіл на доступ до камери необхідний для створення ефекту стробоскопа</string>
|
||||
<string name="bright_display">Яскравий дисплей</string>
|
||||
<string name="sleep_timer">Таймер сну</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Показувати кнопку перемикання на білий дисплей</string>
|
||||
<string name="show_stroboscope">Показувати кнопку стробоскопа</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">获取相机失败</string>
|
||||
<string name="camera_permission">相机权限对于正确的频闪仪效果是必须的</string>
|
||||
<string name="bright_display">高亮屏幕</string>
|
||||
<string name="sleep_timer">睡眠定时器</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">显示高亮屏幕按钮</string>
|
||||
<string name="show_stroboscope">显示频闪仪按钮</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">未能取得相機</string>
|
||||
<string name="camera_permission">相機權限對於閃爍效果是必要的</string>
|
||||
<string name="bright_display">Bright display</string>
|
||||
<string name="sleep_timer">睡眠定時器</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">顯示螢幕發亮按鈕</string>
|
||||
<string name="show_stroboscope">顯示閃爍效果按鈕</string>
|
||||
@ -14,4 +15,4 @@
|
||||
Haven't found some strings? There's more at
|
||||
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
|
||||
-->
|
||||
</resources>
|
||||
</resources>
|
||||
|
@ -5,6 +5,7 @@
|
||||
<string name="camera_error">Obtaining the camera failed</string>
|
||||
<string name="camera_permission">Camera permission is necessary for proper stroboscope effect</string>
|
||||
<string name="bright_display">Bright display</string>
|
||||
<string name="sleep_timer">Sleep timer</string>
|
||||
<!-- Settings -->
|
||||
<string name="show_bright_display">Show a bright display button</string>
|
||||
<string name="show_stroboscope">Show a stroboscope button</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user