Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,5 @@ fun timesheetCsv(rows: List<TimesheetRow>, period: PeriodResult, pay: PayResult,
money.forEach { (label, amount) -> lines += listOf("$label ($currency)", amount * rate) }
}
// CRLF and a BOM so Excel opens it as UTF-8 with the en dashes intact.
return "" + lines.joinToString("\r\n") { line -> line.joinToString(",") { csvCell(it) } }
return "\uFEFF" + lines.joinToString("\r\n") { line -> line.joinToString(",") { csvCell(it) } }
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package dev.quackbyte.punchboard.widget

import android.annotation.SuppressLint
import android.app.PendingIntent
import android.appwidget.AppWidgetManager
import android.appwidget.AppWidgetProvider
Expand Down Expand Up @@ -201,7 +202,9 @@ class PunchTileService : TileService() {
}
}

// Android 14 throws on the Intent overload, which only older versions reach here.
@Suppress("DEPRECATION")
@SuppressLint("StartActivityAndCollapseDeprecated")
private fun openApp() {
val intent = Intent(this, MainActivity::class.java).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
if (android.os.Build.VERSION.SDK_INT >= 34) {
Expand Down