Move wakelock back to advanced section
This commit is contained in:
parent
5286e02c9c
commit
7c18d956de
2 changed files with 7 additions and 7 deletions
|
@ -6,6 +6,7 @@ import io.heckel.ntfy.BuildConfig
|
||||||
import io.heckel.ntfy.db.Database
|
import io.heckel.ntfy.db.Database
|
||||||
import io.heckel.ntfy.db.LogDao
|
import io.heckel.ntfy.db.LogDao
|
||||||
import io.heckel.ntfy.db.LogEntry
|
import io.heckel.ntfy.db.LogEntry
|
||||||
|
import io.heckel.ntfy.db.Repository
|
||||||
import io.heckel.ntfy.util.isIgnoringBatteryOptimizations
|
import io.heckel.ntfy.util.isIgnoringBatteryOptimizations
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.GlobalScope
|
import kotlinx.coroutines.GlobalScope
|
||||||
|
@ -49,7 +50,6 @@ class Log(private val logsDao: LogDao) {
|
||||||
Android: ${Build.VERSION.RELEASE} (SDK ${Build.VERSION.SDK_INT})
|
Android: ${Build.VERSION.RELEASE} (SDK ${Build.VERSION.SDK_INT})
|
||||||
Model: ${Build.DEVICE}
|
Model: ${Build.DEVICE}
|
||||||
Product: ${Build.PRODUCT}
|
Product: ${Build.PRODUCT}
|
||||||
---
|
|
||||||
""".trimIndent() + "\n\n$s"
|
""".trimIndent() + "\n\n$s"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,10 @@
|
||||||
app:key="@string/settings_advanced_clear_logs_key"
|
app:key="@string/settings_advanced_clear_logs_key"
|
||||||
app:title="@string/settings_advanced_clear_logs_title"
|
app:title="@string/settings_advanced_clear_logs_title"
|
||||||
app:summary="@string/settings_advanced_clear_logs_summary"/>
|
app:summary="@string/settings_advanced_clear_logs_summary"/>
|
||||||
|
<SwitchPreference
|
||||||
|
app:key="@string/settings_advanced_wakelock_key"
|
||||||
|
app:title="@string/settings_advanced_wakelock_title"
|
||||||
|
app:enabled="true"/>
|
||||||
</PreferenceCategory>
|
</PreferenceCategory>
|
||||||
<PreferenceCategory app:title="@string/settings_experimental_header">
|
<PreferenceCategory app:title="@string/settings_experimental_header">
|
||||||
<ListPreference
|
<ListPreference
|
||||||
|
@ -61,10 +65,6 @@
|
||||||
app:entries="@array/settings_advanced_connection_protocol_entries"
|
app:entries="@array/settings_advanced_connection_protocol_entries"
|
||||||
app:entryValues="@array/settings_advanced_connection_protocol_values"
|
app:entryValues="@array/settings_advanced_connection_protocol_values"
|
||||||
app:defaultValue="jsonhttp"/>
|
app:defaultValue="jsonhttp"/>
|
||||||
<SwitchPreference
|
|
||||||
app:key="@string/settings_advanced_wakelock_key"
|
|
||||||
app:title="@string/settings_advanced_wakelock_title"
|
|
||||||
app:enabled="true"/>
|
|
||||||
</PreferenceCategory>
|
</PreferenceCategory>
|
||||||
<PreferenceCategory app:title="@string/settings_about_header">
|
<PreferenceCategory app:title="@string/settings_about_header">
|
||||||
<Preference
|
<Preference
|
||||||
|
|
Loading…
Reference in a new issue