mirror of
https://github.com/geode-sdk/android-launcher.git
synced 2026-10-22 08:42:38 +00:00
cleanup some warnings
This commit is contained in:
3 files changed
+9
-8
No files matched your search
@@ -345,10 +345,10 @@ fun FrameRateDialog(
|
||||
)
|
||||
}
|
||||
|
||||
var minFrameRate = 5
|
||||
val minFrameRate = 5
|
||||
val currentValue = enteredValue.toIntOrNull()
|
||||
var maximumReached = currentValue != null && currentValue > maxFrameRate
|
||||
var minimumReached = currentValue != null && currentValue < minFrameRate
|
||||
val maximumReached = currentValue != null && currentValue > maxFrameRate
|
||||
val minimumReached = currentValue != null && currentValue < minFrameRate
|
||||
|
||||
AlertDialog(
|
||||
onDismissRequest = { onDismissRequest() },
|
||||
@@ -374,7 +374,7 @@ fun FrameRateDialog(
|
||||
Spacer(Modifier.size(8.dp))
|
||||
|
||||
OutlinedTextField(
|
||||
value = enteredValue.toString(),
|
||||
value = enteredValue,
|
||||
onValueChange = {
|
||||
enteredValue = it
|
||||
},
|
||||
|
||||
@@ -94,8 +94,8 @@ class Cocos2dxRenderer(private var handler: Cocos2dxGLSurfaceView) : GLSurfaceVi
|
||||
} else {
|
||||
nativeRender()
|
||||
|
||||
var now = System.nanoTime()
|
||||
var interval = now - this.lastTickInNanoSeconds
|
||||
val now = System.nanoTime()
|
||||
val interval = now - this.lastTickInNanoSeconds
|
||||
|
||||
if (interval < animationInterval) {
|
||||
try {
|
||||
|
||||
@@ -10,8 +10,9 @@ object Cocos2dxTypefaces {
|
||||
|
||||
@Synchronized
|
||||
operator fun get(pContext: Context, pAssetName: String): Typeface? {
|
||||
var typeface: Typeface?
|
||||
var typeface2: Typeface
|
||||
val typeface: Typeface?
|
||||
val typeface2: Typeface
|
||||
|
||||
synchronized(Cocos2dxTypefaces::class.java) {
|
||||
if (!typefaceCache.containsKey(pAssetName)) {
|
||||
typeface2 = if (pAssetName.startsWith("/")) {
|
||||
|
||||
Reference in new issue
Block a user