Beispiel #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));
   }
 }
Beispiel #2
0
 public static void startFirstActivity(Context ctx, User user) {
   if (user.getType().equals(User.Type.VENDOR)) ActivityUtil.startRequestMapActivity(ctx);
   else ActivityUtil.startRequestCreateActivity(ctx);
 }
Beispiel #3
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));
 }