Skip to content

Commit

Permalink
Put account vanishing button behind feature flag. (#4525)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrant authored Mar 12, 2024
1 parent 9572b35 commit fd0e120
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/main/java/org/wikipedia/settings/LogoutPreference.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ import android.util.AttributeSet
import android.view.View
import android.widget.Button
import android.widget.TextView
import androidx.core.view.isVisible
import androidx.preference.Preference
import androidx.preference.PreferenceViewHolder
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import org.wikipedia.R
import org.wikipedia.WikipediaApp
import org.wikipedia.activity.SingleWebViewActivity
import org.wikipedia.auth.AccountUtil
import org.wikipedia.util.ReleaseUtil
import org.wikipedia.util.StringUtil

@Suppress("unused")
Expand Down Expand Up @@ -59,5 +61,8 @@ class LogoutPreference : Preference {
}.show()
}
}

// TODO: remove when ready
holder.itemView.findViewById<View>(R.id.accountVanishButton).isVisible = ReleaseUtil.isPreProdRelease
}
}

0 comments on commit fd0e120

Please sign in to comment.