Expand truncated notification log rows
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user