fix hiding FB login

This commit is contained in:
Phillip Thelen 2022-04-22 12:27:11 +02:00
parent c8eeddb6ef
commit ddb1650b01
3 changed files with 9 additions and 1 deletions

View file

@ -104,6 +104,10 @@
<key>enableTeamBoards</key>
<value>false</value>
</entry>
<entry>
<key>hideFacebook</key>
<value>false</value>
</entry>
<entry>
<key>enableNewArmoire</key>

View file

@ -154,4 +154,8 @@ class AppConfigManager(contentRepository: ContentRepository?) {
fun enableNewArmoire(): Boolean {
return remoteConfig.getBoolean("enableNewArmoire")
}
fun hideFacebook(): Boolean {
return remoteConfig.getBoolean("hideFacebook")
}
}

View file

@ -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()