Skip to content

Commit 434eeb4

Browse files
CopilotPranavPurwar
andcommitted
Minor code improvements: fix comment and remove shadowed variable
Co-authored-by: PranavPurwar <75154889+PranavPurwar@users.noreply.github.com>
1 parent 171117b commit 434eeb4

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

app/src/main/java/dev/pranav/applock/core/broadcast/BootReceiver.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ class BootReceiver : BroadcastReceiver() {
2525
}
2626
Intent.ACTION_BOOT_COMPLETED -> {
2727
try {
28-
val appLockRepository = context.appLockRepository()
29-
startAppropriateServices(context, appLockRepository)
28+
startAppropriateServices(context, repository)
3029
} catch (e: Exception) {
3130
Log.e(TAG, "Error starting services on boot", e)
3231
}

app/src/main/java/dev/pranav/applock/core/utils/LogUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ object LogUtils {
119119

120120
for (line in lines) {
121121
try {
122-
// Extract timestamp from log line format: "2024-01-15T10:30:00Z D TAG: message"
122+
// Extract timestamp from log line format: "[ISO-8601 timestamp] D [TAG]: [message]"
123123
val timestampStr = line.substringBefore(" ")
124124
val timestamp = Instant.parse(timestampStr)
125125

0 commit comments

Comments
 (0)