Skip to content

Commit

Permalink
Fix #1067: handle fragment loading based on savedInstanceState
Browse files Browse the repository at this point in the history
  • Loading branch information
hussainmohd-a committed Sep 23, 2023
1 parent 889179f commit 211d00a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import android.widget.TextView
import androidx.appcompat.widget.AppCompatImageView
import androidx.appcompat.widget.AppCompatTextView
import com.celzero.bravedns.R
import com.celzero.bravedns.databinding.SpinnerItemFirewallStatusBinding

Expand Down Expand Up @@ -71,7 +71,7 @@ class FirewallStatusSpinnerAdapter(val context: Context, private val spinnerLabe
private fun setItem(view: View, status: String?) {
if (status == null) return

val tv = view.findViewById<TextView>(R.id.spinner_text)
val tv = view.findViewById<AppCompatTextView>(R.id.spinner_text)
val iv = view.findViewById<AppCompatImageView>(R.id.spinner_icon)
tv.text = status
// do not show down arrow on drop down
Expand Down

0 comments on commit 211d00a

Please sign in to comment.