Skip to content

Commit

Permalink
fix span
Browse files Browse the repository at this point in the history
  • Loading branch information
madbulls committed Oct 5, 2021
1 parent f822b66 commit 9024155
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/net/harimurti/tv/dialog/ProxyDialog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class ProxyDialog : DialogFragment(), OnCountryClickedListener, OnProxyClickedLi

private fun spanColumn(): Int {
val screenWidthDp = resources.displayMetrics.widthPixels / resources.displayMetrics.density
return (screenWidthDp / 300 + 0.5).toInt()
return ((screenWidthDp * 0.75) / 300 + 0.5).toInt()
}

private fun refreshProxy(){
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/proxy_dialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
android:layout_height="0dp"
android:orientation="vertical"
android:gravity="center"
app:layout_constraintWidth_percent="0.65"
app:layout_constraintWidth_percent="0.75"
app:layout_constraintStart_toEndOf="@id/country"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
Expand Down

0 comments on commit 9024155

Please sign in to comment.