mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Lint
This commit is contained in:
@@ -33,6 +33,7 @@ internal actual fun RealDropdownMenu(
|
||||
offset = offset,
|
||||
content = content
|
||||
)
|
||||
|
||||
@Composable
|
||||
internal actual fun RealDropdownMenuItem(
|
||||
onClick: () -> Unit,
|
||||
@@ -66,4 +67,4 @@ fun SecureFlagPolicy.toAndroidSecureFlagPolicy() = when (this) {
|
||||
SecureFlagPolicy.Inherit -> AndroidSecureFlagPolicy.Inherit
|
||||
SecureFlagPolicy.SecureOn -> AndroidSecureFlagPolicy.SecureOn
|
||||
SecureFlagPolicy.SecureOff -> AndroidSecureFlagPolicy.SecureOff
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,4 +15,4 @@ import dev.icerock.moko.resources.FileResource
|
||||
actual fun FileResource.rememberReadText(): String {
|
||||
val context = LocalContext.current
|
||||
return remember(context) { readText(context) }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,4 +63,4 @@ fun AroundLayout(
|
||||
}
|
||||
}
|
||||
|
||||
private enum class AroundLayoutContent { Start, MainContent, End }
|
||||
private enum class AroundLayoutContent { Start, MainContent, End }
|
||||
|
||||
@@ -34,6 +34,7 @@ enum class SecureFlagPolicy {
|
||||
* policy.
|
||||
*/
|
||||
SecureOn,
|
||||
|
||||
/**
|
||||
* No [WindowManager.LayoutParams.FLAG_SECURE] will be set on the window that is using this
|
||||
* policy.
|
||||
@@ -92,4 +93,4 @@ fun DropdownMenuItem(
|
||||
contentPadding: PaddingValues = MenuDefaults.DropdownMenuItemContentPadding,
|
||||
interactionSource: MutableInteractionSource = remember { MutableInteractionSource() },
|
||||
content: @Composable RowScope.() -> Unit
|
||||
) = RealDropdownMenuItem(onClick, modifier, enabled, contentPadding, interactionSource, content)
|
||||
) = RealDropdownMenuItem(onClick, modifier, enabled, contentPadding, interactionSource, content)
|
||||
|
||||
@@ -10,4 +10,4 @@ import androidx.compose.runtime.Composable
|
||||
import dev.icerock.moko.resources.FileResource
|
||||
|
||||
@Composable
|
||||
expect fun FileResource.rememberReadText(): String
|
||||
expect fun FileResource.rememberReadText(): String
|
||||
|
||||
@@ -16,4 +16,4 @@ expect class ContextWrapper {
|
||||
enum class Length {
|
||||
SHORT,
|
||||
LONG
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ internal actual fun RealDropdownMenu(
|
||||
offset = offset,
|
||||
content = content
|
||||
)
|
||||
|
||||
@Composable
|
||||
internal actual fun RealDropdownMenuItem(
|
||||
onClick: () -> Unit,
|
||||
@@ -45,4 +46,4 @@ internal actual fun RealDropdownMenuItem(
|
||||
contentPadding = contentPadding,
|
||||
interactionSource = interactionSource,
|
||||
content = content
|
||||
)
|
||||
)
|
||||
|
||||
@@ -11,4 +11,4 @@ import androidx.compose.runtime.remember
|
||||
import dev.icerock.moko.resources.FileResource
|
||||
|
||||
@Composable
|
||||
actual fun FileResource.rememberReadText(): String = remember { readText() }
|
||||
actual fun FileResource.rememberReadText(): String = remember { readText() }
|
||||
|
||||
Reference in New Issue
Block a user