public FriendListAction(Context context, UserInfoVo userInfo, Handler handler) {
   super();
   this.context = context;
   this.userInfoVo = userInfo;
   this.handler = handler;
   finalDb = FinalFactory.createFinalDb(context, userInfo);
   friendApi = new FriendApi();
   pinyinComparator = new PinyinComparator();
 }
Example #2
0
  // 初始化用户信息.
  private void initUserInfo() {
    UserInfoVo userInfoVo = new UserInfoCache(this).getCacheUserInfo();
    if (userInfoVo == null) {
      trancLoginActivity();
      return;
    }

    CustomerVo customerVo =
        FinalFactory.createFinalDb(getBaseContext(), userInfoVo)
            .findById(userInfoVo.getUid(), CustomerVo.class);

    if (customerVo == null) {
      trancLoginActivity();
      return;
    }

    shangwupanlvApplication.setUserInfoVo(userInfoVo);
    shangwupanlvApplication.setCustomerVo(customerVo);

    trancIndexActivity();
  }