v1.4: faster rotation (12deg/frame = ~1 full spin per second)
This commit is contained in:
@@ -11,8 +11,8 @@ android {
|
||||
applicationId = "me.khodak.claudeusage"
|
||||
minSdk = 26
|
||||
targetSdk = 34
|
||||
versionCode = 4
|
||||
versionName = "1.3"
|
||||
versionCode = 5
|
||||
versionName = "1.4"
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
|
||||
@@ -47,8 +47,8 @@ class UsageUpdateWorker(
|
||||
|
||||
try {
|
||||
while (true) {
|
||||
ClaudeUsageWidget.currentRotation = (ClaudeUsageWidget.currentRotation + 6f) % 360f
|
||||
totalDegrees += 6f
|
||||
ClaudeUsageWidget.currentRotation = (ClaudeUsageWidget.currentRotation + 12f) % 360f
|
||||
totalDegrees += 12f
|
||||
ids.forEach { id -> ClaudeUsageWidget.updateWidget(context, manager, id) }
|
||||
delay(33) // 30 fps, one full rotation per second
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user