Skip to content
Closed
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 @@ -18,6 +18,7 @@ import android.net.Uri
import android.os.Build
import android.provider.Settings
import android.widget.Toast
import com.balajitechlabs.quickdash.core.quicktile.QrScannerTileService
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
Expand Down Expand Up @@ -250,10 +251,10 @@ fun SettingsFloatingWindowSection(
onClick = {
if (Build.VERSION.SDK_INT >= 33) {
try {
val manager = context.getSystemService(Context.STATUS_BAR_SERVICE) as StatusBarManager
val manager = context.getSystemService(StatusBarManager::class.java)
val componentName = ComponentName(
context,
"com.balajitechlabs.quickdash.core.quicktile.QrScannerTileService"
QrScannerTileService::class.java

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[suggestion] Type-safe class reference prevents R8/ProGuard obfuscation breakage.

Suggested change
QrScannerTileService::class.java
val componentName = ComponentName(
context,
QrScannerTileService::class.java
)

)
manager.requestAddTileService(
componentName,
Expand Down
Loading