[F] Fix dark text on dark background

This commit is contained in:
Azalea Gui
2023-01-23 15:13:38 -05:00
parent 479b87ca5d
commit 5f6a2e9bb2
2 changed files with 3 additions and 3 deletions
@@ -102,7 +102,7 @@ class ActivityScan : AppCompatActivity() {
// Add to scanned devices
scannedDevices.add(peripheral)
Handler(Looper.getMainLooper()).post {
binding.lvScanned.adapter = ArrayAdapter(applicationContext, android.R.layout.simple_list_item_1,
binding.lvScanned.adapter = ArrayAdapter(this, android.R.layout.simple_list_item_1,
scannedDevices.map {
"${it.name + if (it.address in pairedAddresses) " (Paired)" else ""}\n" +
"MAC Address: ${it.address}"
@@ -117,7 +117,7 @@ class ActivityScan : AppCompatActivity() {
}
// Format and show bounded device list
binding.lvPaired.adapter = ArrayAdapter(applicationContext, android.R.layout.simple_list_item_1,
binding.lvPaired.adapter = ArrayAdapter(this, android.R.layout.simple_list_item_1,
pairedDevices.map { "Name: ${it.name}\nMAC Address: ${it.address}" })
// On click handler
+1 -1
View File
@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
tools:context=".ActivityScan">
<TextView
android:id="@+id/mainText"