public BaseDialogMessagesAdapter(
     BaseActivity baseActivity, List<CombinationMessage> objectsList) {
   super(baseActivity, objectsList);
   dataManager = DataManager.getInstance();
   imageUtils = new ImageUtils(baseActivity);
   colorUtils = new ColorUtils();
   fileUtils = new FileUtils();
   currentUser = AppSession.getSession().getUser();
 }
 @Override
 public void onResume() {
   super.onResume();
   QBUser user = AppSession.getSession().getUser();
   if (user != null) {
     fullNameTextView.setText(user.getFullName());
   }
   addActions();
 }
 private void startFriendProfile(User selectedFriend) {
   QBUser currentUser = AppSession.getSession().getUser();
   /*
   if (currentUser.getId() == selectedFriend.getUserId()) {
       ProfileActivity.start(GroupDialogDetailsActivity.this);
   } else {
       FriendDetailsActivity.start(GroupDialogDetailsActivity.this, selectedFriend.getUserId());
   }
   */
 }
  private void storeRegistration(Context context, Bundle registration) {
    PrefsHelper prefsHelper = PrefsHelper.getPrefsHelper();
    int appVersion = Utils.getAppVersionCode(context);
    prefsHelper.savePref(PrefsHelper.PREF_REG_ID, registration.getString(PrefsHelper.PREF_REG_ID));
    QBUser user = AppSession.getSession().getUser();
    if (user != null) {
      prefsHelper.savePref(PrefsHelper.PREF_REG_USER_ID, user.getId());
    }

    prefsHelper.savePref(
        PrefsHelper.PREF_IS_SUBSCRIBED_ON_SERVER,
        registration.getBoolean(PrefsHelper.PREF_IS_SUBSCRIBED_ON_SERVER, false));
    prefsHelper.savePref(PrefsHelper.PREF_APP_VERSION, appVersion);
  }
 private void saveUserCredentials(QBUser user) {
   user.setPassword(newPasswordEditText.getText().toString());
   AppSession.getSession().updateUser(user);
 }
 private void initFields() {
   title = getString(R.string.change_password_title);
   canPerformLogout.set(false);
   qbUser = AppSession.getSession().getUser();
 }