mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 21:33:53 +01:00
* Fix #2215 Added BetaCheckerUtil class and made necessary changes * Fix #2215 Fixed formatting error in LogSender class * Fix #2215 Renamed BetaCheckerUtil to ConfigUtils * Fix #2215 Fixed formatting in CommonsApplicationModule
This commit is contained in:
parent
cd322d2f57
commit
b05b302e65
9 changed files with 39 additions and 24 deletions
|
|
@ -48,6 +48,7 @@ import fr.free.nrw.commons.di.ApplicationlessInjection;
|
|||
import fr.free.nrw.commons.mwapi.MediaWikiApi;
|
||||
import fr.free.nrw.commons.theme.NavigationBaseActivity;
|
||||
import fr.free.nrw.commons.ui.widget.HtmlTextView;
|
||||
import fr.free.nrw.commons.utils.ConfigUtils;
|
||||
import fr.free.nrw.commons.utils.ViewUtil;
|
||||
import io.reactivex.Observable;
|
||||
import io.reactivex.android.schedulers.AndroidSchedulers;
|
||||
|
|
@ -139,7 +140,7 @@ public class LoginActivity extends AccountAuthenticatorActivity {
|
|||
.setNegativeButton(R.string.no, (dialog, which) -> dialog.cancel())
|
||||
.show());
|
||||
|
||||
if (BuildConfig.FLAVOR.equals("beta")){
|
||||
if (ConfigUtils.isBetaFlavour()) {
|
||||
loginCredentials.setText(getString(R.string.login_credential));
|
||||
} else {
|
||||
loginCredentials.setVisibility(View.GONE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue