refactor: Change function visibility from private to public in ProfileScreen.kt
This commit is contained in:
@@ -4,6 +4,7 @@ import androidx.activity.compose.BackHandler
|
|||||||
import androidx.compose.animation.core.Spring
|
import androidx.compose.animation.core.Spring
|
||||||
import androidx.compose.animation.core.spring
|
import androidx.compose.animation.core.spring
|
||||||
import androidx.compose.foundation.background
|
import androidx.compose.foundation.background
|
||||||
|
import androidx.compose.foundation.clickable
|
||||||
import androidx.compose.foundation.layout.*
|
import androidx.compose.foundation.layout.*
|
||||||
import androidx.compose.foundation.lazy.LazyColumn
|
import androidx.compose.foundation.lazy.LazyColumn
|
||||||
import androidx.compose.foundation.shape.CircleShape
|
import androidx.compose.foundation.shape.CircleShape
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ fun getAvatarColor(name: String, isDarkTheme: Boolean): AvatarColors {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getInitials(name: String): String {
|
fun getInitials(name: String): String {
|
||||||
if (name.isBlank()) return "?"
|
if (name.isBlank()) return "?"
|
||||||
val parts = name.trim().split(" ").filter { it.isNotEmpty() }
|
val parts = name.trim().split(" ").filter { it.isNotEmpty() }
|
||||||
return when {
|
return when {
|
||||||
@@ -703,7 +703,7 @@ fun ProfileCard(
|
|||||||
// ═════════════════════════════════════════════════════════════
|
// ═════════════════════════════════════════════════════════════
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
private fun TelegramSectionTitle(title: String, isDarkTheme: Boolean) {
|
fun TelegramSectionTitle(title: String, isDarkTheme: Boolean) {
|
||||||
val textColor = if (isDarkTheme) Color(0xFF8E8E93) else Color(0xFF8E8E93)
|
val textColor = if (isDarkTheme) Color(0xFF8E8E93) else Color(0xFF8E8E93)
|
||||||
|
|
||||||
Text(
|
Text(
|
||||||
@@ -785,7 +785,7 @@ private fun TelegramTextField(
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
private fun TelegramCopyField(
|
fun TelegramCopyField(
|
||||||
value: String,
|
value: String,
|
||||||
fullValue: String,
|
fullValue: String,
|
||||||
label: String,
|
label: String,
|
||||||
|
|||||||
Reference in New Issue
Block a user