mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-21 13:19:02 +00:00
Merge pull request #401 from saranlert/class-optout-mp
Hide MP bar for opt-out class
This commit is contained in:
commit
b01b0bff2a
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ public class AvatarWithBarsViewModel implements View.OnClickListener {
|
|||
userClass += stats.getCleanedClassName();
|
||||
}
|
||||
|
||||
mpBar.valueBarLayout.setVisibility((stats.get_class() == null || stats.getLvl() < 10) ? View.GONE : View.VISIBLE);
|
||||
mpBar.valueBarLayout.setVisibility((stats.get_class() == null || stats.getLvl() < 10 || user.getPreferences().getDisableClasses()) ? View.GONE : View.VISIBLE);
|
||||
|
||||
lvlText.setText("Lvl " + user.getStats().getLvl() + " - " + userClass);
|
||||
Drawable drawable;
|
||||
|
|
|
|||
Loading…
Reference in a new issue