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