Skip to content

CircleToSearch with multi search engine support for all android

Kotlin

handled back gesture

AKS Labs707071b5a6f0
diff --git a/app/src/main/java/com/akslabs/circletosearch/ui/CircleToSearchScreen.kt b/app/src/main/java/com/akslabs/circletosearch/ui/CircleToSearchScreen.kt
index faa1aa4..947f42d 100644
--- a/app/src/main/java/com/akslabs/circletosearch/ui/CircleToSearchScreen.kt
+++ b/app/src/main/java/com/akslabs/circletosearch/ui/CircleToSearchScreen.kt
@@ -146,8 +146,10 @@ import com.akslabs.circletosearch.ui.theme.OverlayGradientColors
import com.akslabs.circletosearch.utils.FriendlyMessageManager
import com.akslabs.circletosearch.utils.ImageSearchUploader
import com.akslabs.circletosearch.utils.ImageUtils
+import com.akslabs.circletosearch.utils.QrResult
import com.akslabs.circletosearch.utils.QrResultWithBounds
import com.akslabs.circletosearch.utils.QrScanner
+import com.akslabs.circletosearch.ui.qrResultShortLabel
import com.akslabs.circletosearch.utils.UIPreferences
import kotlinx.coroutines.delay
import kotlinx.coroutines.Dispatchers
@@ -279,8 +281,10 @@ fun CircleToSearchScreen(
var showGradientBorder by remember { mutableStateOf(uiPreferences.isShowGradientBorder()) }
// Back gesture handler for QR sheet
+ // We use a high-priority check or ensure it's at the very top of the hierarchy
BackHandler(enabled = showQrSheet) {
showQrSheet = false
+ selectedQrResult = null
}
// Track initialized engines for Smart Loading
@@ -842,70 +846,7 @@ fun CircleToSearchScreen(
modifier = Modifier.fillMaxSize()
)
- // QR Overlay Chips
- BoxWithConstraints(modifier = Modifier.fillMaxSize()) {
- val screenWidth = maxWidth
- val screenHeight = maxHeight
- val bitmapWidth = screenshot.width.toFloat()
- val bitmapHeight = screenshot.height.toFloat()
- detectedQrCodes.forEach { qr ->
- qr.bounds?.let { bounds ->
- val chipX = (bounds.centerX() / bitmapWidth) * screenWidth.value
- val chipY = (bounds.centerY() / bitmapHeight) * screenHeight.value
-
- Box(
- modifier = Modifier
- .offset(
- x = chipX.dp - 24.dp,
- y = chipY.dp - 24.dp
- )
- .size(48.dp)
- .background(MaterialTheme.colorScheme.primary.copy(alpha = 0.8f), CircleShape)
- .border(2.dp, Color.White, CircleShape)
- .clickable {
- selectedQrResult = qr
- qrScanBitmap = null // Use results directly
- showQrSheet = true
- }
- .zIndex(200f),
- contentAlignment = Alignment.Center
- ) {
- Icon(
- Icons.Default.QrCode,
- contentDescription = "QR Found",
- tint = Color.White,
- modifier = Modifier.size(24.dp)
- )
- }
-
- // Mini label
- val label = com.akslabs.circletosearch.ui.qrResultShortLabel(qr.result)
- if (label.isNotEmpty()) {
- Surface(
- modifier = Modifier
- .offset(
- x = chipX.dp + 28.dp,
- y = chipY.dp - 12.dp
- )
- .zIndex(199f),
- shape = RoundedCornerShape(8.dp),
- color = MaterialTheme.colorScheme.surfaceContainerHighest.copy(alpha = 0.9f),
- tonalElevation = 4.dp
- ) {
- Text(
- text = label,
- style = MaterialTheme.typography.labelSmall,
- modifier = Modifier.padding(horizontal = 8.dp, vertical = 4.dp),
- maxLines = 1,
- overflow = TextOverflow.Ellipsis
- )
- }
- }
- }
- }
- }
-
// Tint Overlay (Punch-out style)
Canvas(modifier = Modifier.fillMaxSize()) {
val strokeWidth = 0f
@@ -1710,9 +1651,98 @@ fun CircleToSearchScreen(
}
}
}
-
+
+ // --- NEW: QR Overlay Chips (High Layer) ---
+ if (screenshot != null && !isCopyMode) {
+ BoxWithConstraints(modifier = Modifier.fillMaxSize().zIndex(1100f)) {
+ val screenWidth = maxWidth
+ val screenHeight = maxHeight
+ val bitmapWidth = screenshot.width.toFloat()
+ val bitmapHeight = screenshot.height.toFloat()
+
+ detectedQrCodes.forEach { qr ->
+ qr.bounds?.let { bounds ->
+ val chipX = (bounds.centerX() / bitmapWidth) * screenWidth.value
+ val chipY = (bounds.centerY() / bitmapHeight) * screenHeight.value
+ val isUrl = qr.result is QrResult.Url
+
+ // Using a Box with pointerInput to consume taps and prevent circling
+ Box(
+ modifier = Modifier
+ .offset(x = chipX.dp - 22.dp, y = chipY.dp - 22.dp)
+ .size(44.dp)
+ .shadow(4.dp, CircleShape)
+ .background(Color.White, CircleShape)
+ .border(1.5.dp, if(isUrl) Color(0xFF1A73E8) else MaterialTheme.colorScheme.primary.copy(alpha = 0.5f), CircleShape)
+ .pointerInput(qr) {
+ detectTapGestures {
+ selectedQrResult = qr
+ qrScanBitmap = null
+ showQrSheet = true
+ }
+ },
+ contentAlignment = Alignment.Center
+ ) {
+ Icon(
+ Icons.Default.QrCode,
+ null,
+ tint = if(isUrl) Color(0xFF1A73E8) else MaterialTheme.colorScheme.primary,
+ modifier = Modifier.size(22.dp)
+ )
+ }
+
+ val label = qrResultShortLabel(qr.result)
+ if (label.isNotEmpty()) {
+ Surface(
+ modifier = Modifier
+ .offset(x = chipX.dp + 16.dp, y = chipY.dp - 32.dp)
+ .pointerInput(qr) {
+ detectTapGestures {
+ selectedQrResult = qr
+ qrScanBitmap = null
+ showQrSheet = true
+ }
+ },
+ shape = RoundedCornerShape(12.dp),
+ color = Color.White.copy(alpha = 0.95f),
+ tonalElevation = 4.dp,
+ shadowElevation = 4.dp,
+ border = if(isUrl) androidx.compose.foundation.BorderStroke(1.dp, Color(0xFF1A73E8).copy(alpha = 0.3f)) else null
+ ) {
+ Text(
+ text = label,
+ style = MaterialTheme.typography.labelSmall.copy(
+ color = if(isUrl) Color(0xFF1A73E8) else MaterialTheme.colorScheme.onSurface,
+ fontWeight = if(isUrl) FontWeight.Bold else FontWeight.Medium
+ ),
+ modifier = Modifier.padding(horizontal = 10.dp, vertical = 6.dp),
+ maxLines = 1,
+ overflow = TextOverflow.Ellipsis
+ )
+ }
+ }
+ }
+ }
+ }
+ }
+
// QR Code Result Sheet
if (showQrSheet) {
+ // Full-screen invisible overlay to catch "click outside"
+ Box(
+ modifier = Modifier
+ .fillMaxSize()
+ .zIndex(2500f)
+ .background(Color.Black.copy(alpha = 0.01f)) // Almost invisible but catches taps
+ .clickable(
+ interactionSource = remember { MutableInteractionSource() },
+ indication = null
+ ) {
+ showQrSheet = false
+ selectedQrResult = null
+ }
+ )
+
Box(
modifier = Modifier
.fillMaxWidth()
@@ -1722,24 +1752,22 @@ fun CircleToSearchScreen(
.zIndex(3000f),
contentAlignment = Alignment.BottomCenter
) {
- Column {
- QrCodeResultSheet(
- context = context,
- bitmap = qrScanBitmap,
- onDismiss = {
- showQrSheet = false
- selectedQrResult = null
- },
- preScanned = if (selectedQrResult != null) listOf(selectedQrResult!!) else detectedQrCodes
- )
- // Dismiss tap area
- androidx.compose.foundation.layout.Box(
- modifier = Modifier
- .fillMaxWidth()
- .height(8.dp)
- .clickable { showQrSheet = false }
- )
+ // Ensure BackHandler is active when sheet is shown
+ androidx.activity.compose.BackHandler {
+ showQrSheet = false
+ selectedQrResult = null
}
+
+ QrCodeResultSheet(
+ context = context,
+ bitmap = qrScanBitmap,
+ onDismiss = {
+ showQrSheet = false
+ selectedQrResult = null
+ },
+ initialResults = detectedQrCodes,
+ initialPage = if (selectedQrResult != null) detectedQrCodes.indexOf(selectedQrResult!!) else 0
+ )
}
}
diff --git a/app/src/main/java/com/akslabs/circletosearch/ui/QrCodeResultSheet.kt b/app/src/main/java/com/akslabs/circletosearch/ui/QrCodeResultSheet.kt
index 5f30cac..8492677 100644
--- a/app/src/main/java/com/akslabs/circletosearch/ui/QrCodeResultSheet.kt
+++ b/app/src/main/java/com/akslabs/circletosearch/ui/QrCodeResultSheet.kt
@@ -12,7 +12,6 @@ import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.animateFloat
-import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.rememberInfiniteTransition
import androidx.compose.animation.core.tween
@@ -25,6 +24,7 @@ import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
+import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
@@ -33,17 +33,18 @@ import androidx.compose.foundation.layout.offset
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
+import androidx.compose.foundation.pager.HorizontalPager
+import androidx.compose.foundation.pager.rememberPagerState
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ChevronLeft
import androidx.compose.material.icons.filled.ChevronRight
-import androidx.compose.material.icons.filled.ContentCopy
-import androidx.compose.material.icons.filled.LocationOn
import androidx.compose.material.icons.filled.Phone
import androidx.compose.material.icons.filled.QrCode
import androidx.compose.material.icons.filled.ShoppingBag
import androidx.compose.material.icons.filled.Wifi
+import androidx.compose.material.icons.filled.LocationOn
import androidx.compose.material3.Button
import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.material3.FilledTonalButton
@@ -62,11 +63,14 @@ import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
+import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Brush
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.font.FontWeight
+import androidx.compose.ui.text.style.TextDecoration
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
+import androidx.compose.ui.unit.sp
import com.akslabs.circletosearch.utils.QrResult
import com.akslabs.circletosearch.utils.QrResultWithBounds
import com.akslabs.circletosearch.utils.QrScanner
@@ -81,19 +85,27 @@ private fun copyToClipboard(context: Context, label: String, text: String) {
}
private fun openUrl(context: Context, url: String) {
- context.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(url)).apply {
- addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
- })
+ var finalUrl = url
+ if (!finalUrl.startsWith("http://") && !finalUrl.startsWith("https://")) {
+ finalUrl = "https://" + finalUrl
+ }
+ try {
+ context.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(finalUrl)).apply {
+ addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
+ })
+ } catch (e: Exception) {
+ Toast.makeText(context, "Cannot open link", Toast.LENGTH_SHORT).show()
+ }
}
fun qrResultShortLabel(result: QrResult): String = when (result) {
- is QrResult.Url -> result.displayUrl.take(30)
+ is QrResult.Url -> result.displayUrl.take(25)
is QrResult.WiFi -> result.ssid
is QrResult.Phone -> result.number
is QrResult.Product -> result.barcode
is QrResult.VCard -> result.name ?: "Contact"
- is QrResult.GeoPoint -> "%.4f, %.4f".format(result.lat, result.lng)
- is QrResult.PlainText -> result.text.take(30)
+ is QrResult.GeoPoint -> "%.2f, %.2f".format(result.lat, result.lng)
+ is QrResult.PlainText -> result.text.take(25)
}
@Composable
@@ -101,15 +113,26 @@ fun QrCodeResultSheet(
context: Context,
bitmap: android.graphics.Bitmap?,
onDismiss: () -> Unit,
- // Supply pre-scanned results to avoid re-scanning; null = scan now
- preScanned: List<QrResultWithBounds>? = null
+ initialResults: List<QrResultWithBounds> = emptyList(),
+ initialPage: Int = 0
) {
val scope = rememberCoroutineScope()
- var results by remember { mutableStateOf<List<QrResultWithBounds>>(preScanned ?: emptyList()) }
- var isScanning by remember { mutableStateOf(preScanned == null) }
+ var results by remember { mutableStateOf<List<QrResultWithBounds>>(initialResults) }
+ var isScanning by remember { mutableStateOf(initialResults.isEmpty()) }
var notFound by remember { mutableStateOf(false) }
- var currentIndex by remember { mutableIntStateOf(0) }
-
+
+ val pagerState = rememberPagerState(
+ initialPage = initialPage.coerceIn(0, (results.size - 1).coerceAtLeast(0)),
+ pageCount = { results.size }
+ )
+
+ // Ensure pager stays in sync if results change (though usually they don't after opening)
+ LaunchedEffect(initialPage, results.size) {
+ if (results.isNotEmpty()) {
+ pagerState.scrollToPage(initialPage.coerceIn(0, results.size - 1))
+ }
+ }
+
val infiniteTransition = rememberInfiniteTransition(label = "scanline")
val scanlineY by infiniteTransition.animateFloat(
initialValue = 0f, targetValue = 1f,
@@ -118,38 +141,42 @@ fun QrCodeResultSheet(
)
LaunchedEffect(bitmap) {
- if (preScanned != null) return@LaunchedEffect
+ if (initialResults.isNotEmpty()) {
+ results = initialResults
+ isScanning = false
+ return@LaunchedEffect
+ }
if (bitmap == null) { isScanning = false; notFound = true; return@LaunchedEffect }
isScanning = true; notFound = false
val found = withContext(Dispatchers.Default) { QrScanner.scanBitmapAll(bitmap) }
isScanning = false
- if (found.isEmpty()) notFound = true else { results = found; currentIndex = 0 }
+ if (found.isEmpty()) notFound = true else { results = found }
}
Surface(
modifier = Modifier.fillMaxWidth().padding(horizontal = 16.dp, vertical = 8.dp),
- shape = RoundedCornerShape(24.dp),
+ shape = RoundedCornerShape(28.dp),
color = MaterialTheme.colorScheme.surfaceContainerHigh,
- tonalElevation = 6.dp, shadowElevation = 12.dp
+ tonalElevation = 8.dp, shadowElevation = 12.dp
) {
- Column(modifier = Modifier.padding(20.dp), horizontalAlignment = Alignment.CenterHorizontally) {
- // Header row
- Row(verticalAlignment = Alignment.CenterVertically) {
- Icon(Icons.Default.QrCode, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(20.dp))
- Spacer(Modifier.width(8.dp))
+ Column(modifier = Modifier.padding(vertical = 20.dp), horizontalAlignment = Alignment.CenterHorizontally) {
+ // Header Row
+ Row(modifier = Modifier.padding(horizontal = 20.dp), verticalAlignment = Alignment.CenterVertically) {
+ Icon(Icons.Default.QrCode, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(22.dp))
+ Spacer(Modifier.width(10.dp))
val titleText = when {
isScanning -> "Scanning…"
notFound -> "No QR Found"
- results.size > 1 -> "QR ${currentIndex + 1} of ${results.size}"
- else -> "QR / Barcode"
+ results.size > 1 -> "Result ${pagerState.currentPage + 1} of ${results.size}"
+ else -> "QR / Barcode Detected"
}
- Text(titleText, style = MaterialTheme.typography.titleMedium.copy(fontWeight = FontWeight.SemiBold), modifier = Modifier.weight(1f))
- // Multi-result navigation
+ Text(titleText, style = MaterialTheme.typography.titleMedium.copy(fontWeight = FontWeight.Bold), modifier = Modifier.weight(1f))
+
if (results.size > 1) {
- IconButton(onClick = { currentIndex = (currentIndex - 1 + results.size) % results.size }, modifier = Modifier.size(32.dp)) {
+ IconButton(onClick = { scope.launch { pagerState.animateScrollToPage((pagerState.currentPage - 1 + results.size) % results.size) } }, modifier = Modifier.size(36.dp)) {
Icon(Icons.Default.ChevronLeft, null)
}
- IconButton(onClick = { currentIndex = (currentIndex + 1) % results.size }, modifier = Modifier.size(32.dp)) {
+ IconButton(onClick = { scope.launch { pagerState.animateScrollToPage((pagerState.currentPage + 1) % results.size) } }, modifier = Modifier.size(36.dp)) {
Icon(Icons.Default.ChevronRight, null)
}
}
@@ -157,19 +184,46 @@ fun QrCodeResultSheet(
Spacer(Modifier.height(16.dp))
- AnimatedContent(
- targetState = when {
- isScanning -> "scanning"
- notFound -> "notfound"
- else -> "result_${currentIndex}"
- },
- transitionSpec = { fadeIn(tween(300)) togetherWith fadeOut(tween(200)) },
- label = "qrState"
- ) { state ->
- when {
- state == "scanning" -> ScanningIndicator(scanlineY)
- state == "notfound" -> NotFoundContent()
- results.isNotEmpty() -> QrResultContent(context, results[currentIndex].result)
+ if (isScanning) {
+ ScanningIndicator(scanlineY)
+ } else if (notFound) {
+ NotFoundContent()
+ } else if (results.isNotEmpty()) {
+ Column(horizontalAlignment = Alignment.CenterHorizontally) {
+ HorizontalPager(
+ state = pagerState,
+ modifier = Modifier.fillMaxWidth(),
+ contentPadding = PaddingValues(horizontal = 20.dp),
+ pageSpacing = 16.dp
+ ) { page ->
+ QrResultContent(context, results[page].result)
+ }
+
+ if (results.size > 1) {
+ Spacer(Modifier.height(16.dp))
+ Row(
+ Modifier.fillMaxWidth(),
+ horizontalArrangement = Arrangement.Center,
+ verticalAlignment = Alignment.CenterVertically
+ ) {
+ repeat(results.size) { i ->
+ val active = pagerState.currentPage == i
+ Box(
+ modifier = Modifier
+ .padding(horizontal = 4.dp)
+ .size(if (active) 8.dp else 6.dp)
+ .clip(CircleShape)
+ .background(if (active) MaterialTheme.colorScheme.primary else MaterialTheme.colorScheme.onSurfaceVariant.copy(alpha = 0.3f))
+ )
+ }
+ }
+ Text(
+ "Swipe for more results",
+ style = MaterialTheme.typography.labelSmall,
+ color = MaterialTheme.colorScheme.onSurfaceVariant.copy(alpha = 0.6f),
+ modifier = Modifier.padding(top = 8.dp)
+ )
+ }
}
}
}
@@ -180,33 +234,33 @@ fun QrCodeResultSheet(
fun ScanningIndicator(scanlineY: Float) {
Column(horizontalAlignment = Alignment.CenterHorizontally) {
Box(
- modifier = Modifier.size(80.dp).background(MaterialTheme.colorScheme.surfaceContainerHighest, RoundedCornerShape(16.dp)),
+ modifier = Modifier.size(90.dp).background(MaterialTheme.colorScheme.surfaceContainerHighest, RoundedCornerShape(20.dp)),
contentAlignment = Alignment.Center
) {
- CircularProgressIndicator(modifier = Modifier.size(40.dp), strokeWidth = 3.dp, color = MaterialTheme.colorScheme.primary)
- Box(modifier = Modifier.fillMaxWidth().height(2.dp)
- .offset(y = (80.dp * scanlineY) - 40.dp)
+ CircularProgressIndicator(modifier = Modifier.size(44.dp), strokeWidth = 3.dp, color = MaterialTheme.colorScheme.primary)
+ Box(modifier = Modifier.fillMaxWidth().height(3.dp)
+ .offset(y = (90.dp * scanlineY) - 45.dp)
.background(Brush.horizontalGradient(listOf(Color.Transparent, MaterialTheme.colorScheme.primary, Color.Transparent)))
)
}
- Spacer(Modifier.height(12.dp))
- Text("Scanning for QR codes…", style = MaterialTheme.typography.bodyMedium, color = MaterialTheme.colorScheme.onSurfaceVariant)
+ Spacer(Modifier.height(16.dp))
+ Text("Scanning screenshot…", style = MaterialTheme.typography.bodyMedium, color = MaterialTheme.colorScheme.onSurfaceVariant)
}
}
@Composable
fun NotFoundContent() {
- Column(horizontalAlignment = Alignment.CenterHorizontally) {
- Text("🔍", style = MaterialTheme.typography.headlineLarge)
- Spacer(Modifier.height(8.dp))
- Text("No QR code found", style = MaterialTheme.typography.bodyLarge, color = MaterialTheme.colorScheme.onSurfaceVariant)
- Text("Try circling the QR code more precisely", style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.onSurfaceVariant.copy(alpha = 0.7f))
+ Column(horizontalAlignment = Alignment.CenterHorizontally, modifier = Modifier.padding(vertical = 10.dp)) {
+ Text("🔎", fontSize = 48.sp)
+ Spacer(Modifier.height(12.dp))
+ Text("No QR code detected", style = MaterialTheme.typography.titleMedium, fontWeight = FontWeight.SemiBold)
+ Text("Ensure the code is clearly visible", style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.onSurfaceVariant)
}
}
@Composable
fun QrResultContent(context: Context, result: QrResult) {
- AnimatedVisibility(visible = true, enter = slideInVertically(tween(350)) { it / 3 } + fadeIn(tween(300))) {
+ Box(modifier = Modifier.fillMaxWidth(), contentAlignment = Alignment.Center) {
when (result) {
is QrResult.Url -> UrlResult(context, result)
is QrResult.WiFi -> WifiResult(context, result)
@@ -222,35 +276,47 @@ fun QrResultContent(context: Context, result: QrResult) {
@Composable
private fun UrlResult(context: Context, result: QrResult.Url) {
Column(horizontalAlignment = Alignment.CenterHorizontally) {
- Text("🔗", style = MaterialTheme.typography.headlineLarge)
- Spacer(Modifier.height(4.dp))
- Text(result.displayUrl.substringBefore("/"), style = MaterialTheme.typography.titleLarge.copy(fontWeight = FontWeight.Bold), maxLines = 1, overflow = TextOverflow.Ellipsis)
- Text(result.displayUrl, style = MaterialTheme.typography.bodyMedium, color = MaterialTheme.colorScheme.onSurfaceVariant, maxLines = 2)
- Spacer(Modifier.height(16.dp))
- ActionRow { PrimaryAction("Open in Browser") { openUrl(context, result.url) }; SecondaryAction("Copy Link") { copyToClipboard(context, "URL", result.url) } }
+ Text("🔗", fontSize = 42.sp)
+ Spacer(Modifier.height(8.dp))
+ Text(result.displayUrl.substringBefore("/"), style = MaterialTheme.typography.titleLarge.copy(fontWeight = FontWeight.ExtraBold))
+ Text(
+ text = result.displayUrl,
+ style = MaterialTheme.typography.bodyLarge.copy(
+ color = Color(0xFF1A73E8),
+ textDecoration = TextDecoration.Underline,
+ fontWeight = FontWeight.Medium
+ ),
+ maxLines = 2,
+ overflow = TextOverflow.Ellipsis,
+ modifier = Modifier.clickable { openUrl(context, result.url) }.padding(4.dp)
+ )
+ Spacer(Modifier.height(20.dp))
+ ActionRow { PrimaryAction("Open Browser") { openUrl(context, result.url) }; SecondaryAction("Copy Link") { copyToClipboard(context, "URL", result.url) } }
}
}
@Composable
private fun WifiResult(context: Context, result: QrResult.WiFi) {
Column(horizontalAlignment = Alignment.CenterHorizontally) {
- Icon(Icons.Default.Wifi, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(32.dp))
+ Icon(Icons.Default.Wifi, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(42.dp))
+ Spacer(Modifier.height(10.dp))
Text(result.ssid, style = MaterialTheme.typography.titleLarge.copy(fontWeight = FontWeight.Bold))
Text("${result.security}${if (result.password != null) " · Password: ${result.password}" else ""}", style = MaterialTheme.typography.bodyMedium, color = MaterialTheme.colorScheme.onSurfaceVariant)
- Spacer(Modifier.height(16.dp))
- ActionRow { if (result.password != null) SecondaryAction("Copy Password") { copyToClipboard(context, "WiFi Password", result.password) } }
+ Spacer(Modifier.height(20.dp))
+ ActionRow { if (result.password != null) PrimaryAction("Copy Password") { copyToClipboard(context, "WiFi Password", result.password) } }
}
}
@Composable
private fun PhoneResult(context: Context, result: QrResult.Phone) {
Column(horizontalAlignment = Alignment.CenterHorizontally) {
- Icon(Icons.Default.Phone, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(32.dp))
+ Icon(Icons.Default.Phone, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(42.dp))
+ Spacer(Modifier.height(10.dp))
Text(result.number, style = MaterialTheme.typography.titleLarge.copy(fontWeight = FontWeight.Bold))
- Spacer(Modifier.height(16.dp))
+ Spacer(Modifier.height(20.dp))
ActionRow {
- PrimaryAction("Call") { openUrl(context, "tel:${result.number}") }
- SecondaryAction("SMS") { openUrl(context, "sms:${result.number}") }
+ PrimaryAction("Call Now") { openUrl(context, "tel:${result.number}") }
+ SecondaryAction("Send SMS") { openUrl(context, "sms:${result.number}") }
SecondaryAction("Copy") { copyToClipboard(context, "Phone", result.number) }
}
}
@@ -259,11 +325,12 @@ private fun PhoneResult(context: Context, result: QrResult.Phone) {
@Composable
private fun ProductResult(context: Context, result: QrResult.Product) {
Column(horizontalAlignment = Alignment.CenterHorizontally) {
- Icon(Icons.Default.ShoppingBag, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(32.dp))
+ Icon(Icons.Default.ShoppingBag, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(42.dp))
+ Spacer(Modifier.height(10.dp))
Text(result.barcode, style = MaterialTheme.typography.titleLarge.copy(fontWeight = FontWeight.Bold))
- Spacer(Modifier.height(16.dp))
+ Spacer(Modifier.height(20.dp))
ActionRow {
- PrimaryAction("Amazon") { openUrl(context, "https://www.amazon.com/s?k=${result.barcode}") }
+ PrimaryAction("Amazon Search") { openUrl(context, "https://www.amazon.com/s?k=${result.barcode}") }
SecondaryAction("Google") { openUrl(context, "https://www.google.com/search?q=${result.barcode}") }
SecondaryAction("Copy") { copyToClipboard(context, "Barcode", result.barcode) }
}
@@ -273,11 +340,11 @@ private fun ProductResult(context: Context, result: QrResult.Product) {
@Composable
private fun VCardResult(context: Context, result: QrResult.VCard) {
Column(horizontalAlignment = Alignment.CenterHorizontally) {
- Text("👤", style = MaterialTheme.typography.headlineLarge)
+ Text("👤", fontSize = 42.sp)
if (result.name != null) Text(result.name, style = MaterialTheme.typography.titleLarge.copy(fontWeight = FontWeight.Bold))
val sub = listOfNotNull(result.phone, result.email).joinToString(" · ")
if (sub.isNotEmpty()) Text(sub, style = MaterialTheme.typography.bodyMedium, color = MaterialTheme.colorScheme.onSurfaceVariant)
- Spacer(Modifier.height(16.dp))
+ Spacer(Modifier.height(20.dp))
ActionRow {
PrimaryAction("Save Contact") {
context.startActivity(Intent(Intent.ACTION_INSERT).apply {
@@ -288,20 +355,21 @@ private fun VCardResult(context: Context, result: QrResult.VCard) {
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
})
}
- SecondaryAction("Copy") { copyToClipboard(context, "Contact", result.raw) }
+ SecondaryAction("Copy Raw") { copyToClipboard(context, "Contact", result.raw) }
}
}
}
@Composable
private fun GeoResult(context: Context, result: QrResult.GeoPoint) {
- val coord = "%.4f° N, %.4f° E".format(result.lat, result.lng)
+ val coord = "%.4f, %.4f".format(result.lat, result.lng)
Column(horizontalAlignment = Alignment.CenterHorizontally) {
- Icon(Icons.Default.LocationOn, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(32.dp))
+ Icon(Icons.Default.LocationOn, null, tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(42.dp))
+ Spacer(Modifier.height(10.dp))
Text(coord, style = MaterialTheme.typography.titleMedium.copy(fontWeight = FontWeight.Bold))
- Spacer(Modifier.height(16.dp))
+ Spacer(Modifier.height(20.dp))
ActionRow {
- PrimaryAction("Open Maps") { openUrl(context, "geo:${result.lat},${result.lng}?q=${result.lat},${result.lng}") }
+ PrimaryAction("Open in Maps") { openUrl(context, "geo:${result.lat},${result.lng}?q=${result.lat},${result.lng}") }
SecondaryAction("Copy") { copyToClipboard(context, "Coordinates", coord) }
}
}
@@ -310,13 +378,19 @@ private fun GeoResult(context: Context, result: QrResult.GeoPoint) {
@Composable
private fun PlainTextResult(context: Context, result: QrResult.PlainText) {
Column(horizontalAlignment = Alignment.CenterHorizontally) {
- Text("📋", style = MaterialTheme.typography.headlineLarge)
- Spacer(Modifier.height(4.dp))
- Text("\"${result.text}\"", style = MaterialTheme.typography.bodyLarge, maxLines = 4, overflow = TextOverflow.Ellipsis)
- Spacer(Modifier.height(16.dp))
+ Text("📝", fontSize = 42.sp)
+ Spacer(Modifier.height(8.dp))
+ Text(
+ text = "\"${result.text}\"",
+ style = MaterialTheme.typography.bodyLarge.copy(lineHeight = 22.sp),
+ maxLines = 5,
+ overflow = TextOverflow.Ellipsis,
+ modifier = Modifier.padding(horizontal = 10.dp)
+ )
+ Spacer(Modifier.height(20.dp))
ActionRow {
- SecondaryAction("Copy") { copyToClipboard(context, "Text", result.text) }
- SecondaryAction("Search") { openUrl(context, "https://www.google.com/search?q=${Uri.encode(result.text)}") }
+ PrimaryAction("Search") { openUrl(context, "https://www.google.com/search?q=${Uri.encode(result.text)}") }
+ SecondaryAction("Copy Text") { copyToClipboard(context, "Text", result.text) }
SecondaryAction("Translate") { openUrl(context, "https://translate.google.com/?text=${Uri.encode(result.text)}") }
}
}
@@ -324,15 +398,15 @@ private fun PlainTextResult(context: Context, result: QrResult.PlainText) {
@Composable
private fun ActionRow(content: @Composable () -> Unit) {
- Row(modifier = Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.spacedBy(8.dp, Alignment.CenterHorizontally), verticalAlignment = Alignment.CenterVertically) { content() }
+ Row(modifier = Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.spacedBy(10.dp, Alignment.CenterHorizontally), verticalAlignment = Alignment.CenterVertically) { content() }
}
@Composable
private fun PrimaryAction(label: String, onClick: () -> Unit) {
- Button(onClick = onClick, shape = RoundedCornerShape(12.dp)) { Text(label, style = MaterialTheme.typography.labelMedium) }
+ Button(onClick = onClick, shape = RoundedCornerShape(14.dp), contentPadding = PaddingValues(horizontal = 20.dp, vertical = 10.dp)) { Text(label, style = MaterialTheme.typography.labelLarge) }
}
@Composable
private fun SecondaryAction(label: String, onClick: () -> Unit) {
- FilledTonalButton(onClick = onClick, shape = RoundedCornerShape(12.dp)) { Text(label, style = MaterialTheme.typography.labelMedium) }
+ FilledTonalButton(onClick = onClick, shape = RoundedCornerShape(14.dp), contentPadding = PaddingValues(horizontal = 20.dp, vertical = 10.dp)) { Text(label, style = MaterialTheme.typography.labelLarge) }
}
diff --git a/build_errors_44.txt b/build_errors_44.txt
new file mode 100644
index 0000000..7f75167
Binary files /dev/null and b/build_errors_44.txt differ
diff --git a/build_errors_44_utf8.txt b/build_errors_44_utf8.txt
new file mode 100644
index 0000000..89fa623
--- /dev/null
+++ b/build_errors_44_utf8.txt
@@ -0,0 +1,67 @@
+
+> Configure project :app
+WARNING: BuildType 'debug' is both debuggable and has 'isMinifyEnabled' set to true.
+All code optimizations and obfuscation are disabled for debuggable builds.
+
+> Task :app:checkKotlinGradlePluginConfigurationErrors SKIPPED
+> Task :app:preBuild UP-TO-DATE
+> Task :app:preDebugBuild UP-TO-DATE
+> Task :app:checkDebugAarMetadata UP-TO-DATE
+> Task :app:processDebugNavigationResources UP-TO-DATE
+> Task :app:compileDebugNavigationResources UP-TO-DATE
+> Task :app:generateDebugResValues UP-TO-DATE
+> Task :app:mapDebugSourceSetPaths UP-TO-DATE
+> Task :app:generateDebugResources UP-TO-DATE
+> Task :app:mergeDebugResources UP-TO-DATE
+> Task :app:packageDebugResources UP-TO-DATE
+> Task :app:parseDebugLocalResources UP-TO-DATE
+> Task :app:createDebugCompatibleScreenManifests
+> Task :app:extractDeepLinksDebug UP-TO-DATE
+
+> Task :app:processDebugMainManifest
+C:\Users\ashin\AndroidStudioProjects\CircleToSearch\app\src\main\AndroidManifest.xml:43:9-41 Warning:
+ android:extractNativeLibs should not be specified in this source AndroidManifest.xml file. See https://d.android.com/guide/topics/manifest/application-element#extractNativeLibs for more information.
+The AGP Upgrade Assistant can remove the attribute from the AndroidManifest.xml file and update the build file accordingly. See https://d.android.com/studio/build/agp-upgrade-assistant for more information.
+
+> Task :app:processDebugManifest
+> Task :app:processDebugManifestForPackage
+> Task :app:processDebugResources
+> Task :app:compileDebugKotlin
+.\gradlew.bat : e: file:///C:/Users/ashin/Androi
+dStudioProjects/CircleToSearch/app/src/main/java
+/com/akslabs/circletosearch/ui/CircleToSearchScr
+een.kt:1665:50 Unresolved reference 'QrResult'.
+At line:1 char:1
++ .\gradlew.bat :app:compileDebugKotlin
+--console=plain > build_errors_ ...
++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~
+ + CategoryInfo : NotSpecified: (e:
+ file:///C:/U...nce 'QrResult'.:String) [],
+ RemoteException
+ + FullyQualifiedErrorId : NativeCommandErro
+ r
+
+
+> Task :app:compileDebugKotlin FAILED
+
+FAILURE: Build failed with an exception.
+
+* What went wrong:
+Execution failed for task
+':app:compileDebugKotlin'.
+> A failure occurred while executing org.jetbrai
+ns.kotlin.compilerRunner.GradleCompilerRunnerWit
+hWorkers$GradleKotlinCompilerWorkAction
+ > Compilation error. See log for more details
+
+* Try:
+> Run with --stacktrace option to get the stack
+trace.
+> Run with --info or --debug option to get more
+log output.
+> Run with --scan to get full insights.
+> Get more help at https://help.gradle.org.
+
+BUILD FAILED in 54s
+16 actionable tasks: 6 executed, 10 up-to-date
diff --git a/build_errors_45.txt b/build_errors_45.txt
new file mode 100644
index 0000000..e5cb44c
Binary files /dev/null and b/build_errors_45.txt differ
diff --git a/build_errors_46.txt b/build_errors_46.txt
new file mode 100644
index 0000000..07c0bc2
Binary files /dev/null and b/build_errors_46.txt differ
diff --git a/build_errors_46_utf8.txt b/build_errors_46_utf8.txt
new file mode 100644
index 0000000..249521d
--- /dev/null
+++ b/build_errors_46_utf8.txt
@@ -0,0 +1,72 @@
+
+> Configure project :app
+WARNING: BuildType 'debug' is both debuggable and has 'isMinifyEnabled' set to true.
+All code optimizations and obfuscation are disabled for debuggable builds.
+
+> Task :app:checkKotlinGradlePluginConfigurationErrors SKIPPED
+> Task :app:preBuild UP-TO-DATE
+> Task :app:preDebugBuild UP-TO-DATE
+> Task :app:checkDebugAarMetadata UP-TO-DATE
+> Task :app:processDebugNavigationResources UP-TO-DATE
+> Task :app:compileDebugNavigationResources UP-TO-DATE
+> Task :app:generateDebugResValues UP-TO-DATE
+> Task :app:mapDebugSourceSetPaths UP-TO-DATE
+> Task :app:generateDebugResources UP-TO-DATE
+> Task :app:mergeDebugResources UP-TO-DATE
+> Task :app:packageDebugResources UP-TO-DATE
+> Task :app:parseDebugLocalResources UP-TO-DATE
+> Task :app:createDebugCompatibleScreenManifests
+> Task :app:extractDeepLinksDebug UP-TO-DATE
+
+> Task :app:processDebugMainManifest
+C:\Users\ashin\AndroidStudioProjects\CircleToSearch\app\src\main\AndroidManifest.xml:43:9-41 Warning:
+ android:extractNativeLibs should not be specified in this source AndroidManifest.xml file. See https://d.android.com/guide/topics/manifest/application-element#extractNativeLibs for more information.
+The AGP Upgrade Assistant can remove the attribute from the AndroidManifest.xml file and update the build file accordingly. See https://d.android.com/studio/build/agp-upgrade-assistant for more information.
+
+> Task :app:processDebugManifest
+> Task :app:processDebugManifestForPackage
+> Task :app:processDebugResources
+
+> Task :app:compileDebugKotlin
+.\gradlew.bat : e: file:///C:/Users/ashin/Androi
+dStudioProjects/CircleToSearch/app/src/main/java
+/com/akslabs/circletosearch/ui/QrCodeResultSheet
+.kt:144:13 Unresolved reference 'preScanned'.
+At line:1 char:1
++ .\gradlew.bat :app:compileDebugKotlin
+--console=plain > build_errors_ ...
++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~
+ + CategoryInfo : NotSpecified: (e:
+ file:///C:/U...e 'preScanned'.:String) [],
+ RemoteException
+ + FullyQualifiedErrorId : NativeCommandErro
+ r
+
+e: file:///C:/Users/ashin/AndroidStudioProjects/
+CircleToSearch/app/src/main/java/com/akslabs/cir
+cletosearch/ui/QrCodeResultSheet.kt:145:23
+Unresolved reference 'preScanned'.
+
+> Task :app:compileDebugKotlin FAILED
+
+FAILURE: Build failed with an exception.
+
+* What went wrong:
+Execution failed for task
+':app:compileDebugKotlin'.
+> A failure occurred while executing org.jetbrai
+ns.kotlin.compilerRunner.GradleCompilerRunnerWit
+hWorkers$GradleKotlinCompilerWorkAction
+ > Compilation error. See log for more details
+
+* Try:
+> Run with --stacktrace option to get the stack
+trace.
+> Run with --info or --debug option to get more
+log output.
+> Run with --scan to get full insights.
+> Get more help at https://help.gradle.org.
+
+BUILD FAILED in 57s
+16 actionable tasks: 6 executed, 10 up-to-date
diff --git a/build_errors_47.txt b/build_errors_47.txt
new file mode 100644
index 0000000..f26b06e
Binary files /dev/null and b/build_errors_47.txt differ
diff --git a/builderors.md b/builderors.md
index e69de29..6df6ad4 100644
--- a/builderors.md
+++ b/builderors.md
@@ -0,0 +1,75 @@
+--------- beginning of main
+03-22 11:59:01.311 30753 30753 W main : type=1400 audit(0.0:128525): avc: denied { search } for name="app" dev="mmcblk0p61" ino=1343489 scontext=u:r:zygote:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 app=net.one97.paytm
+03-22 11:59:01.311 30753 30753 W main : type=1400 audit(0.0:128526): avc: denied { search } for name="app" dev="mmcblk0p61" ino=1343489 scontext=u:r:zygote:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 app=net.one97.paytm
+03-22 11:59:01.311 30753 30753 W main : type=1400 audit(0.0:128527): avc: denied { search } for name="app" dev="mmcblk0p61" ino=1343489 scontext=u:r:zygote:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 app=net.one97.paytm
+03-22 11:59:01.311 30753 30753 W main : type=1400 audit(0.0:128528): avc: denied { search } for name="app" dev="mmcblk0p61" ino=1343489 scontext=u:r:zygote:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 app=net.one97.paytm
+03-22 11:59:01.338 30753 30753 I .circletosearch: Late-enabling -Xcheck:jni
+03-22 11:59:01.456 30753 30753 I .circletosearch: Using CollectorTypeCC GC.
+03-22 11:59:01.581 30753 30753 D nativeloader: Load libframework-connectivity-tiramisu-jni.so using APEX ns com_android_tethering for caller /apex/com.android.tethering/javalib/framework-connectivity-t.jar: ok
+03-22 11:59:01.751 30753 30753 W re-initialized>: type=1400 audit(0.0:128529): avc: granted { execute } for path="/data/data/com.akslabs.circletosearch/code_cache/startup_agents/6097f3dc-agent.so" dev="mmcblk0p61" ino=417800 scontext=u:r:untrusted_app:s0:c167,c259,c512,c768 tcontext=u:object_r:app_data_file:s0:c167,c259,c512,c768 tclass=file app=net.one97.paytm
+03-22 11:59:01.775 30753 30753 D nativeloader: Load /data/user/0/com.akslabs.circletosearch/code_cache/startup_agents/6097f3dc-agent.so using system ns (caller=<unknown>): ok
+03-22 11:59:01.778 30753 30753 V studio.deploy: Startup agent attached to VM
+03-22 11:59:01.780 30753 30753 V studio.deploy: No existing instrumentation found. Loading instrumentation from instruments-6a1a1143.jar
+03-22 11:59:01.799 30753 30753 W .circletosearch: DexFile /data/data/com.akslabs.circletosearch/code_cache/.studio/instruments-6a1a1143.jar is in boot class path but is not in a known location
+03-22 11:59:01.813 30753 30753 V studio.deploy: Applying transforms with cached classes
+03-22 11:59:02.022 30753 30753 W .circletosearch: Redefining intrinsic method java.lang.Thread java.lang.Thread.currentThread(). This may cause the unexpected use of the original definition of java.lang.Thread java.lang.Thread.currentThread()in methods that have already been compiled.
+03-22 11:59:02.022 30753 30753 W .circletosearch: Redefining intrinsic method boolean java.lang.Thread.interrupted(). This may cause the unexpected use of the original definition of boolean java.lang.Thread.interrupted()in methods that have already been compiled.
+03-22 11:59:02.027 30753 30753 I studio.deploy: Registering DispatchJNI
+03-22 11:59:02.028 30753 30753 I studio.deploy: Found com/android/tools/deploy/interpreter/JNI
+03-22 11:59:02.120 30753 30753 W ziparchive: Unable to open '/data/data/com.akslabs.circletosearch/code_cache/.overlay/base.apk/classes.dm': No such file or directory
+03-22 11:59:02.304 30753 30753 W ziparchive: Unable to open '/data/app/~~UXQwZLMrccRuoxuIEEn2ZA==/com.akslabs.circletosearch-yRdMISAYBcNVWRam0Tii2Q==/base.dm': No such file or directory
+03-22 11:59:02.304 30753 30753 W ziparchive: Unable to open '/data/app/~~UXQwZLMrccRuoxuIEEn2ZA==/com.akslabs.circletosearch-yRdMISAYBcNVWRam0Tii2Q==/base.dm': No such file or directory
+03-22 11:59:02.435 30753 30753 D nativeloader: Configuring clns-7 for other apk /data/app/~~UXQwZLMrccRuoxuIEEn2ZA==/com.akslabs.circletosearch-yRdMISAYBcNVWRam0Tii2Q==/base.apk. target_sdk_version=36, uses_libraries=, library_path=/data/app/~~UXQwZLMrccRuoxuIEEn2ZA==/com.akslabs.circletosearch-yRdMISAYBcNVWRam0Tii2Q==/lib/arm64:/data/app/~~UXQwZLMrccRuoxuIEEn2ZA==/com.akslabs.circletosearch-yRdMISAYBcNVWRam0Tii2Q==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/com.akslabs.circletosearch
+03-22 11:59:02.462 30753 30753 I .circletosearch: AssetManager2(0x7318c2a4b8) locale list changing from [] to [en-IN]
+03-22 11:59:02.466 30753 30753 I .circletosearch: AssetManager2(0x7318c243d8) locale list changing from [] to [en-IN]
+03-22 11:59:02.492 30753 30753 V GraphicsEnvironment: Currently set values for:
+03-22 11:59:02.492 30753 30753 V GraphicsEnvironment: angle_gl_driver_selection_pkgs=[com.android.angle, com.linecorp.b612.android, com.campmobile.snow, com.google.android.apps.tachyon]
+03-22 11:59:02.492 30753 30753 V GraphicsEnvironment: angle_gl_driver_selection_values=[angle, native, native, native]
+03-22 11:59:02.492 30753 30753 V GraphicsEnvironment: com.akslabs.circletosearch is not listed in per-application setting
+03-22 11:59:02.493 30753 30753 V GraphicsEnvironment: Neither updatable production driver nor prerelease driver is supported.
+03-22 11:59:02.617 30753 30753 I .circletosearch: AssetManager2(0x7318c1d358) locale list changing from [] to [en-IN]
+03-22 11:59:02.740 30753 30753 D DesktopModeFlagsUtil: Toggle override initialized to: OVERRIDE_UNSET
+03-22 11:59:03.424 30753 30753 W .circletosearch: Accessing hidden method Landroid/os/SystemProperties;->addChangeCallback(Ljava/lang/Runnable;)V (unsupported, reflection, allowed)
+03-22 11:59:03.837 30753 30753 W HWUI : Image decoding logging dropped!
+03-22 11:59:04.146 30753 30786 I AdrenoGLES-0: QUALCOMM build : 95db91f, Ifbc588260a
+03-22 11:59:04.146 30753 30786 I AdrenoGLES-0: Build Date : 09/24/20
+03-22 11:59:04.146 30753 30786 I AdrenoGLES-0: OpenGL ES Shader Compiler Version: EV031.32.02.01
+03-22 11:59:04.146 30753 30786 I AdrenoGLES-0: Local Branch : mybrancheafe5b6d-fb5b-f1b0-b904-5cb90179c3e0
+03-22 11:59:04.146 30753 30786 I AdrenoGLES-0: Remote Branch : quic/gfx-adreno.lnx.1.0.r114-rel
+03-22 11:59:04.146 30753 30786 I AdrenoGLES-0: Remote Branch : NONE
+03-22 11:59:04.146 30753 30786 I AdrenoGLES-0: Reconstruct Branch : NOTHING
+03-22 11:59:04.146 30753 30786 I AdrenoGLES-0: Build Config : S P 10.0.7 AArch64
+03-22 11:59:04.146 30753 30786 I AdrenoGLES-0: Driver Path : /vendor/lib64/egl/libGLESv2_adreno.so
+03-22 11:59:04.163 30753 30786 I AdrenoGLES-0: PFP: 0x016ee190, ME: 0x00000000
+03-22 11:59:04.240 30753 30801 I Gralloc4: mapper 4.x is not supported
+03-22 11:59:04.241 30753 30801 W Gralloc3: mapper 3.x is not supported
+03-22 11:59:04.250 30753 30801 I Gralloc2: Adding additional valid usage bits: 0x8202000
+03-22 11:59:04.367 30753 30764 I HWUI : Davey! duration=1446ms; Flags=1, FrameTimelineVsyncId=59465236, IntendedVsync=75778795778634, Vsync=75778812445285, InputEventId=0, HandleInputStart=75778813026039, AnimationStart=75778813030310, PerformTraversalsStart=75778813032601, DrawStart=75780137228174, FrameDeadline=75778812445300, FrameInterval=75778812955466, FrameStartTime=16666651, SyncQueued=75780191665569, SyncStart=75780191862601, IssueDrawCommandsStart=75780193072340, SwapBuffers=75780234770153, FrameCompleted=75780242905361, DequeueBufferDuration=16666, QueueBufferDuration=309375, GpuCompleted=75780242905361, SwapBuffersCompleted=75780235698538, DisplayPresentTime=0, CommandSubmissionCompleted=75780234770153,
+03-22 11:59:04.452 30753 30753 I Choreographer: Skipped 81 frames! The application may be doing too much work on its main thread.
+03-22 11:59:04.473 30753 30766 I HWUI : Davey! duration=1361ms; Flags=0, FrameTimelineVsyncId=59465618, IntendedVsync=75778995781318, Vsync=75780345793819, InputEventId=0, HandleInputStart=75780347537809, AnimationStart=75780347541559, PerformTraversalsStart=75780347542757, DrawStart=75780348802705, FrameDeadline=75780262443937, FrameInterval=75780346471142, FrameStartTime=16666821, SyncQueued=75780349536611, SyncStart=75780349791819, IssueDrawCommandsStart=75780349898174, SwapBuffers=75780352163747, FrameCompleted=75780357048069, DequeueBufferDuration=16510, QueueBufferDuration=561250, GpuCompleted=75780357048069, SwapBuffersCompleted=75780354418434, DisplayPresentTime=0, CommandSubmissionCompleted=75780352163747,
+03-22 11:59:04.650 30753 30764 I HWUI : Davey! duration=1523ms; Flags=1, FrameTimelineVsyncId=59465618, IntendedVsync=75778995781318, Vsync=75780345793819, InputEventId=0, HandleInputStart=75780347537809, AnimationStart=75780347541559, PerformTraversalsStart=75780347542757, DrawStart=75780498748486, FrameDeadline=75779012447984, FrameInterval=75780346471142, FrameStartTime=16666821, SyncQueued=75780507257184, SyncStart=75780507416403, IssueDrawCommandsStart=75780507562601, SwapBuffers=75780517272809, FrameCompleted=75780519717757, DequeueBufferDuration=16146, QueueBufferDuration=392083, GpuCompleted=75780519717757, SwapBuffersCompleted=75780519044476, DisplayPresentTime=0, CommandSubmissionCompleted=75780517272809,
+03-22 11:59:04.731 30753 30753 D InsetsController: hide(ime(), fromIme=false)
+03-22 11:59:04.732 30753 30753 I ImeTracker: com.akslabs.circletosearch:9eb1d189: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
+03-22 11:59:07.661 30753 30811 D ProfileInstaller: Installing profile for com.akslabs.circletosearch
+03-22 11:59:09.632 30753 30753 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=false callback=androidx.navigationevent.OnBackInvokedInput$createOnBackAnimationCallback$1@baca4b6
+03-22 11:59:09.693 30753 30753 D InsetsController: hide(ime(), fromIme=false)
+03-22 11:59:09.693 30753 30753 I ImeTracker: com.akslabs.circletosearch:8c312b7c: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
+03-22 11:59:14.473 30753 30759 W .circletosearch: Cleared Reference was only reachable from finalizer (only reported once)
+03-22 11:59:14.482 30753 30759 I .circletosearch: Background concurrent copying GC freed 6467KB AllocSpace bytes, 5(100KB) LOS objects, 49% free, 5109KB/10219KB, paused 81us,21us total 115.589ms
+03-22 11:59:16.157 30753 30753 D VRI[MainActivity]: visibilityChanged oldVisibility=true newVisibility=false
+03-22 11:59:26.134 30753 30753 D CircleToSearch: performCapture called. hasWindowManager=true
+03-22 11:59:26.290 30753 30879 D CircleToSearchAccess: AccessibilityService launching OverlayActivity
+03-22 11:59:26.607 30753 30753 D CircleToSearch: OverlayActivity onCreate
+03-22 11:59:26.607 30753 30753 D CircleToSearch: Bitmap loaded from Repository. Size: 1080x2340
+03-22 11:59:27.383 30753 30764 I HWUI : Davey! duration=734ms; Flags=1, FrameTimelineVsyncId=59492836, IntendedVsync=75802512435439, Vsync=75802529101932, InputEventId=0, HandleInputStart=75802537466186, AnimationStart=75802537468582, PerformTraversalsStart=75802537469623, DrawStart=75803169531029, FrameDeadline=75802529102105, FrameInterval=75802537457905, FrameStartTime=16666493, SyncQueued=75803205949779, SyncStart=75803206087852, IssueDrawCommandsStart=75803206253634, SwapBuffers=75803236669936, FrameCompleted=75803247509154, DequeueBufferDuration=13386, QueueBufferDuration=277187, GpuCompleted=75803247509154, SwapBuffersCompleted=75803237696707, DisplayPresentTime=0, CommandSubmissionCompleted=75803236669936,
+03-22 11:59:27.421 30753 30753 I Choreographer: Skipped 46 frames! The application may be doing too much work on its main thread.
+03-22 11:59:27.536 30753 30753 W HWUI : Image decoding logging dropped!
+03-22 11:59:27.576 30753 30753 W HWUI : Image decoding logging dropped!
+03-22 11:59:27.958 30753 30889 I HWUI : Davey! duration=1293ms; Flags=0, FrameTimelineVsyncId=59492894, IntendedVsync=75802545768207, Vsync=75803312426379, InputEventId=0, HandleInputStart=75803316575248, AnimationStart=75803316580040, PerformTraversalsStart=75803637078113, DrawStart=75803782574623, FrameDeadline=75803279094290, FrameInterval=75803315908842, FrameStartTime=16666482, SyncQueued=75803825303738, SyncStart=75803825398321, IssueDrawCommandsStart=75803825730248, SwapBuffers=75803828598738, FrameCompleted=75803839195300, DequeueBufferDuration=24688, QueueBufferDuration=435990, GpuCompleted=75803839195300, SwapBuffersCompleted=75803830271967, DisplayPresentTime=0, CommandSubmissionCompleted=75803828598738,
+03-22 11:59:28.126 30753 30753 D InsetsController: hide(ime(), fromIme=false)
+03-22 11:59:28.127 30753 30753 I ImeTracker: com.akslabs.circletosearch:bfb28632: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
+03-22 11:59:53.784 30753 30753 W .circletosearch: Accessing hidden method Landroid/view/ViewTreeObserver;->dispatchOnScrollChanged()V (unsupported, reflection, allowed)
+03-22 12:00:18.124 30753 30753 D VRI[OverlayActivity]: visibilityChanged oldVisibility=true newVisibility=false
+03-22 12:00:18.149 30753 30753 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=false callback=androidx.navigationevent.OnBackInvokedInput$createOnBackAnimationCallback$1@f9797ed
+03-22 12:00:18.320 30753 30753 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=false callback=android.app.Activity$$ExternalSyntheticLambda0@a436fa6
+03-22 12:00:18.326 30753 30753 D ViewRootImpl: Skipping stats log for color mode