Skip to content

Commit a2664fd

Browse files
committed
More changes
1 parent 7b6601a commit a2664fd

File tree

15 files changed

+19
-21
lines changed

15 files changed

+19
-21
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@
351351
android:name="com.wstxda.switchai.services.DigitalAssistantTileService"
352352
android:exported="true"
353353
android:icon="@drawable/ic_assistant"
354-
android:label="@string/assistant_open"
354+
android:label="@string/assistant_label"
355355
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
356356
<intent-filter>
357357
<action android:name="android.service.quicksettings.action.QS_TILE" />

app/src/main/java/com/wstxda/switchai/logic/AssistantLauncher.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import android.content.Context
55
import android.content.Intent
66
import android.widget.Toast
77
import androidx.core.net.toUri
8-
import kotlinx.coroutines.Dispatchers
9-
import kotlinx.coroutines.withContext
108

119
fun Context.launchAssistant(
1210
intents: List<Intent>,

app/src/main/java/com/wstxda/switchai/ui/TileManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class TileManager(private val context: Context) {
3838
}
3939
context.getSystemService(StatusBarManager::class.java)?.requestAddTileService(
4040
tileServiceComponent,
41-
context.getString(R.string.assistant_open),
41+
context.getString(R.string.assistant_label),
4242
Icon.createWithResource(context, R.drawable.ic_assistant),
4343
executor,
4444
resultCallback

app/src/main/java/com/wstxda/switchai/ui/viewholder/AssistantSelectorItemViewHolder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class AssistantSelectorItemViewHolder(
2121
val item = wrapper.assistantItem
2222
binding.assistantCheckedTextView.text = item.name
2323
binding.assistantIcon.setImageResource(
24-
if (item.iconResId != 0) item.iconResId else R.drawable.ic_assistant
24+
if (item.iconResId != 0) item.iconResId else R.drawable.ic_assistants
2525
)
2626
binding.pinButton.setIconResource(
2727
if (item.isPinned) R.drawable.ic_pin_filled else R.drawable.ic_pin_outline

app/src/main/res/drawable/ic_assistant.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
android:viewportHeight="24">
77
<path
88
android:fillColor="@android:color/white"
9-
android:pathData="M19,1L17.74,3.75L15,5L17.74,6.26L19,9L20.25,6.26L23,5L20.25,3.75M9,4L6.5,9.5L1,12L6.5,14.5L9,20L11.5,14.5L17,12L11.5,9.5M19,15L17.74,17.74L15,19L17.74,20.25L19,23L20.25,20.25L23,19L20.25,17.74" />
9+
android:pathData="M12,1L9,9L1,12L9,15L12,23L15,15L23,12L15,9L12,1Z" />
1010
</vector>

app/src/main/res/drawable/ic_assistant_select.xml renamed to app/src/main/res/drawable/ic_assistants.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
android:viewportHeight="24">
77
<path
88
android:fillColor="@android:color/white"
9-
android:pathData="M12,1L9,9L1,12L9,15L12,23L15,15L23,12L15,9L12,1Z" />
9+
android:pathData="M19,1L17.74,3.75L15,5L17.74,6.26L19,9L20.25,6.26L23,5L20.25,3.75M9,4L6.5,9.5L1,12L6.5,14.5L9,20L11.5,14.5L17,12L11.5,9.5M19,15L17.74,17.74L15,19L17.74,20.25L19,23L20.25,20.25L23,19L20.25,17.74" />
1010
</vector>

app/src/main/res/layout/preference_material_bottom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
android:layout_height="wrap_content"
2626
android:layout_gravity="center_vertical"
2727
android:layout_marginTop="16dp"
28-
android:layout_marginEnd="8dp"
28+
android:layout_marginEnd="16dp"
2929
android:layout_marginBottom="16dp"
3030
android:layout_weight="1"
3131
android:orientation="vertical">

app/src/main/res/layout/preference_material_middle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
android:layout_height="wrap_content"
2727
android:layout_gravity="center_vertical"
2828
android:layout_marginTop="16dp"
29-
android:layout_marginEnd="8dp"
29+
android:layout_marginEnd="16dp"
3030
android:layout_marginBottom="16dp"
3131
android:layout_weight="1"
3232
android:orientation="vertical">

app/src/main/res/layout/preference_material_single.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
android:layout_height="wrap_content"
2626
android:layout_gravity="center_vertical"
2727
android:layout_marginTop="16dp"
28-
android:layout_marginEnd="8dp"
28+
android:layout_marginEnd="16dp"
2929
android:layout_marginBottom="16dp"
3030
android:layout_weight="1"
3131
android:orientation="vertical">

app/src/main/res/layout/preference_material_top.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
android:layout_height="wrap_content"
2727
android:layout_gravity="center_vertical"
2828
android:layout_marginTop="16dp"
29-
android:layout_marginEnd="8dp"
29+
android:layout_marginEnd="16dp"
3030
android:layout_marginBottom="16dp"
3131
android:layout_weight="1"
3232
android:orientation="vertical">

0 commit comments

Comments
 (0)