Expand truncated notification log rows

This commit is contained in:
ajp_anton
2026-07-23 10:09:13 +00:00
parent 6280c8ef80
commit 1ef6c61602
@@ -4,6 +4,7 @@ import android.os.Bundle
import android.content.ComponentName import android.content.ComponentName
import android.content.Intent import android.content.Intent
import android.net.Uri import android.net.Uri
import android.text.TextUtils
import android.provider.Settings import android.provider.Settings
import android.view.View import android.view.View
import android.widget.TextView import android.widget.TextView
@@ -82,6 +83,13 @@ class ViewLogsFragment : Fragment(R.layout.fragment_view_logs) {
LogField.CONTENTS -> entry.contents LogField.CONTENTS -> entry.contents
} }.joinToString(" · ") } }.joinToString(" · ")
setPadding(0, 12, 0, 12) setPadding(0, 12, 0, 12)
maxLines = 1
ellipsize = TextUtils.TruncateAt.END
setOnClickListener {
val expanded = maxLines != 1
maxLines = if (expanded) 1 else Int.MAX_VALUE
ellipsize = if (expanded) TextUtils.TruncateAt.END else null
}
}) })
} }
} }