()
| 71 | } |
| 72 | |
| 73 | private void setupView() { |
| 74 | |
| 75 | imgUserPic = null; |
| 76 | imgUserPic = (ImageView) rootView.findViewById(R.id.imgUserProfilePic); |
| 77 | if (!scope.User().getAvatar().equals("false")) |
| 78 | imgUserPic.setImageBitmap(Base64Helper.getBitmapImage( |
| 79 | scope.context(), scope.User().getAvatar())); |
| 80 | txvUserLoginName = (TextView) rootView |
| 81 | .findViewById(R.id.txvUserLoginName); |
| 82 | txvUserLoginName.setText(scope.User().getAndroidName()); |
| 83 | |
| 84 | txvUsername = (TextView) rootView.findViewById(R.id.txvUserName); |
| 85 | txvUsername.setText(scope.User().getUsername()); |
| 86 | |
| 87 | txvServerUrl = (TextView) rootView.findViewById(R.id.txvServerUrl); |
| 88 | txvServerUrl.setText(scope.User().getHost()); |
| 89 | |
| 90 | txvDatabase = (TextView) rootView.findViewById(R.id.txvDatabase); |
| 91 | txvDatabase.setText(scope.User().getDatabase()); |
| 92 | |
| 93 | txvTimeZone = (TextView) rootView.findViewById(R.id.txvTimeZone); |
| 94 | String timezone = scope.User().getTimezone(); |
| 95 | txvTimeZone.setText((timezone.equals("false")) ? "GMT" : timezone); |
| 96 | |
| 97 | } |
| 98 | |
| 99 | @Override |
| 100 | public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { |
no test coverage detected