Exemplo n.º 1
0
 public static void startRequestActiveActivity(Context ctx, User user) {
   if (user.getType().equals(User.Type.VENDOR)) {
     ctx.startActivity(ActivityUtil.newIntent(ctx, RequestActiveVendorActivity.class));
   } else {
     ctx.startActivity(ActivityUtil.newIntent(ctx, RequestActiveClientActivity.class));
   }
 }
Exemplo n.º 2
0
 public static void startRequestDetailActivity(Context ctx, Request request) {
   Intent i = ActivityUtil.newIntent(ctx, RequestDetailActivity.class);
   i.putExtra(RequestDetailActivity.REQUEST_ID, request.getObjectId());
   i.putExtra(RequestDetailActivity.REQUEST_STATE, request.getState());
   ctx.startActivity(i);
   ActivityUtil.transitionRight((Activity) ctx);
 }
Exemplo n.º 3
0
 public static void startLoginActivity(Context ctx) {
   ctx.startActivity(ActivityUtil.newIntent(ctx, LoginActivity.class));
 }
Exemplo n.º 4
0
 public static void startRequestMapActivity(Context ctx) {
   ctx.startActivity(ActivityUtil.newIntent(ctx, RequestMapActivity.class));
 }
Exemplo n.º 5
0
 public static void startFirstActivity(Context ctx, User user) {
   if (user.getType().equals(User.Type.VENDOR)) ActivityUtil.startRequestMapActivity(ctx);
   else ActivityUtil.startRequestCreateActivity(ctx);
 }
Exemplo n.º 6
0
 public static void startDelegateActivity(Context ctx) {
   ctx.startActivity(ActivityUtil.newIntent(ctx, DelegateActivity.class));
 }
Exemplo n.º 7
0
 public static void startRequestPendingActivity(Context ctx, User user) {
   if (user.getType().equals(User.Type.VENDOR))
     ctx.startActivity(ActivityUtil.newIntent(ctx, RequestPendingVendorActivity.class));
   else ctx.startActivity(ActivityUtil.newIntent(ctx, RequestPendingClientActivity.class));
 }