MCPcopy Create free account
hub / github.com/Odoo-mobile/framework / setupView

Method setupView

src/com/odoo/base/account/UserProfile.java:73–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 2

onCreateViewMethod · 0.95
onClickMethod · 0.95

Calls 11

getBitmapImageMethod · 0.95
equalsMethod · 0.80
getAvatarMethod · 0.80
UserMethod · 0.80
contextMethod · 0.80
setTextMethod · 0.80
getAndroidNameMethod · 0.80
getUsernameMethod · 0.80
getHostMethod · 0.80
getDatabaseMethod · 0.80
getTimezoneMethod · 0.80

Tested by

no test coverage detected