Resolve concrete lint and backup configuration issues
This commit is contained in:
@@ -185,7 +185,7 @@ class ViewLogsFragment : Fragment(R.layout.fragment_view_logs) {
|
||||
maxLines = if (expanded) Int.MAX_VALUE else 1
|
||||
ellipsize = if (expanded) null else TextUtils.TruncateAt.END
|
||||
if (expanded) {
|
||||
breakStrategy = android.text.Layout.BREAK_STRATEGY_HIGH_QUALITY
|
||||
breakStrategy = android.graphics.text.LineBreaker.BREAK_STRATEGY_HIGH_QUALITY
|
||||
hyphenationFrequency = android.text.Layout.HYPHENATION_FREQUENCY_NONE
|
||||
}
|
||||
textSize = value.textSize
|
||||
|
||||
@@ -41,7 +41,6 @@ enum class NotificationAction {
|
||||
GROUP_SUMMARY_CANCELLED,
|
||||
GROUP_OPTIMIZED,
|
||||
UNAUTOBUNDLED,
|
||||
BUNDLE_DISMISSED,
|
||||
CLEAR_DATA,
|
||||
ASSISTANT_CANCELLED,
|
||||
LOCKDOWN,
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
package se.ajpanton.notificationlog.settings
|
||||
|
||||
import android.content.Context
|
||||
import androidx.core.content.edit
|
||||
|
||||
class AppLockStore(context: Context) {
|
||||
private val prefs = context.getSharedPreferences("app-lock", Context.MODE_PRIVATE)
|
||||
var enabled: Boolean
|
||||
get() = prefs.getBoolean("enabled", false)
|
||||
set(value) = prefs.edit().putBoolean("enabled", value).apply()
|
||||
set(value) = prefs.edit { putBoolean("enabled", value) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user