@Override
  public void online(Object[] args) throws Exception {

    long userId = (long) args[0];
    String picturePath = (String) args[1];

    if (getListener() != null) {
      getListener().onStartUserPortraitLoadRequest();
    }

    Intent service = new Intent(LiferayScreensContext.getContext(), UserPortraitService.class);
    service.putExtra("picturePath", picturePath);
    service.putExtra("screenletId", getTargetScreenletId());
    service.putExtra("userId", userId);

    LiferayScreensContext.getContext().startService(service);
  }
Exemplo n.º 2
0
 @Override
 public void resync() {
   Context context = LiferayScreensContext.getContext();
   context.sendBroadcast(new Intent("com.liferay.mobile.screens.cache.resync"));
 }