Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)) != null) {
- ranking.setText(((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)).getUserRank());
- name.setText(((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)).getUserNick());
- points.setText(((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)).getScore());
- }
- if (((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)) != null) {
- if (!((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)).getUserRank().equals("")) {
- ranking.setText(((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)).getUserRank());
- } else {
- ranking.setText("-");
- }
- if (!((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)).getUserNick().equals("")) {
- name.setText(((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)).getUserNick());
- } else {
- if (!Settings.getNickName(context).equals("")) {
- name.setText(Settings.getNickName(context));
- } else {
- if (((LinkedHashMap<String, AppTerm>) MyApplication.getInstance().getAppTerms()).get(Constants.nickNameGuest) != null) {
- name.setText(((LinkedHashMap<String, AppTerm>) MyApplication.getInstance().getAppTerms()).get(Constants.nickNameGuest).getTerm());
- } else {
- name.setText("Guest");
- }
- }
- }
- if (!((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)).getScore().equals("")) {
- points.setText(((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)).getScore());
- } else {
- points.setText("-");
- }
- } else {
- ranking.setText("-");
- name.setText(Settings.getNickName(getContext()));
- points.setText("-");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement