mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-12 17:28:20 +00:00
fix hiding FB login
This commit is contained in:
parent
c8eeddb6ef
commit
ddb1650b01
3 changed files with 9 additions and 1 deletions
|
|
@ -104,6 +104,10 @@
|
|||
<key>enableTeamBoards</key>
|
||||
<value>false</value>
|
||||
</entry>
|
||||
<entry>
|
||||
<key>hideFacebook</key>
|
||||
<value>false</value>
|
||||
</entry>
|
||||
|
||||
<entry>
|
||||
<key>enableNewArmoire</key>
|
||||
|
|
|
|||
|
|
@ -154,4 +154,8 @@ class AppConfigManager(contentRepository: ContentRepository?) {
|
|||
fun enableNewArmoire(): Boolean {
|
||||
return remoteConfig.getBoolean("enableNewArmoire")
|
||||
}
|
||||
|
||||
fun hideFacebook(): Boolean {
|
||||
return remoteConfig.getBoolean("hideFacebook")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -224,7 +224,7 @@ class LoginActivity : BaseActivity() {
|
|||
}
|
||||
binding.password.imeOptions = EditorInfo.IME_ACTION_DONE
|
||||
binding.fbLoginButton.setText(R.string.login_btn_fb)
|
||||
binding.fbLoginButton.visibility = View.VISIBLE
|
||||
binding.fbLoginButton.visibility = if (configManager.hideFacebook()) View.GONE else View.VISIBLE
|
||||
binding.googleLoginButton.setText(R.string.login_btn_google)
|
||||
}
|
||||
this.resetLayout()
|
||||
|
|
|
|||
Loading…
Reference in a new issue