From 8b596697b72370ff86995cc2e957badf5c7261f0 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 22 Sep 2020 22:09:21 +0530 Subject: tv: do theming Signed-off-by: Harsh Shandilya --- ui/src/main/java/com/wireguard/android/activity/TvMainActivity.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui/src/main/java/com') diff --git a/ui/src/main/java/com/wireguard/android/activity/TvMainActivity.kt b/ui/src/main/java/com/wireguard/android/activity/TvMainActivity.kt index 7b93f563..19e75d72 100644 --- a/ui/src/main/java/com/wireguard/android/activity/TvMainActivity.kt +++ b/ui/src/main/java/com/wireguard/android/activity/TvMainActivity.kt @@ -16,6 +16,7 @@ import androidx.core.view.forEach import androidx.databinding.DataBindingUtil import androidx.databinding.ObservableBoolean import androidx.lifecycle.lifecycleScope +import androidx.recyclerview.widget.GridLayoutManager import com.wireguard.android.Application import com.wireguard.android.R import com.wireguard.android.backend.GoBackend @@ -109,6 +110,7 @@ class TvMainActivity : AppCompatActivity() { binding.deleteButton.setOnClickListener { isDeleting.set(!isDeleting.get()) } + binding.tunnelList.layoutManager = GridLayoutManager(this, 3) binding.executePendingBindings() setContentView(binding.root) -- cgit v1.2.3