Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.38 KB | None | 0 0
  1.  if (((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)) != null) {
  2.                     ranking.setText(((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)).getUserRank());
  3.                     name.setText(((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)).getUserNick());
  4.                     points.setText(((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)).getScore());
  5.                 }
  6.  
  7.                 if (((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)) != null) {
  8.                     if (!((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)).getUserRank().equals("")) {
  9.                         ranking.setText(((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)).getUserRank());
  10.                     } else {
  11.                         ranking.setText("-");
  12.                     }
  13.                     if (!((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)).getUserNick().equals("")) {
  14.                         name.setText(((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)).getUserNick());
  15.                     } else {
  16.                         if (!Settings.getNickName(context).equals("")) {
  17.                             name.setText(Settings.getNickName(context));
  18.                         } else {
  19.                             if (((LinkedHashMap<String, AppTerm>) MyApplication.getInstance().getAppTerms()).get(Constants.nickNameGuest) != null) {
  20.                                 name.setText(((LinkedHashMap<String, AppTerm>) MyApplication.getInstance().getAppTerms()).get(Constants.nickNameGuest).getTerm());
  21.                             } else {
  22.                                 name.setText("Guest");
  23.                             }
  24.                         }
  25.                     }
  26.                     if (!((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)).getScore().equals("")) {
  27.  
  28.                         points.setText(((BetUsers) MyApplication.getInstance().get(Constants.registerBetuser)).getScore());
  29.                     } else {
  30.                         points.setText("-");
  31.                     }
  32.                 } else {
  33.                     ranking.setText("-");
  34.                     name.setText(Settings.getNickName(getContext()));
  35.                     points.setText("-");
  36.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement