Skip to content

Commit 7569c94

Browse files
committed
fix click select
1 parent e42dbfb commit 7569c94

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

app/src/main/java/io/nekohasekai/sagernet/ui/ConfigurationFragment.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1857,8 +1857,10 @@ class ConfigurationFragment @JvmOverloads constructor(
18571857
profileStatus.setOnClickListener {
18581858
alert(err).tryToShow()
18591859
}
1860+
profileStatus.isFocusable = false
18601861
} else {
1861-
profileStatus.setOnClickListener(null)
1862+
profileStatus.setOnClickListener { }
1863+
profileStatus.isFocusable = false
18621864
}
18631865

18641866
editButton.setOnClickListener {

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,15 @@
166166
android:textAppearance="?android:attr/textAppearanceSmall"
167167
android:textColor="?android:textColorSecondary" />
168168

169+
<View
170+
android:layout_width="0dp"
171+
android:layout_height="0dp"
172+
android:layout_weight="1" />
173+
169174
<TextView
170175
android:id="@+id/profile_status"
171-
android:layout_width="0dp"
176+
android:layout_width="wrap_content"
172177
android:layout_height="wrap_content"
173-
android:layout_weight="1"
174178
android:layout_marginStart="8dp"
175179
android:gravity="end"
176180
android:singleLine="true"

0 commit comments

Comments
 (0)