Example #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));
   }
 }
Example #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);
 }
Example #3
0
 public static void startLoginActivity(Context ctx) {
   ctx.startActivity(ActivityUtil.newIntent(ctx, LoginActivity.class));
 }
Example #4
0
 public static void startRequestMapActivity(Context ctx) {
   ctx.startActivity(ActivityUtil.newIntent(ctx, RequestMapActivity.class));
 }
Example #5
0
 public static void startFirstActivity(Context ctx, User user) {
   if (user.getType().equals(User.Type.VENDOR)) ActivityUtil.startRequestMapActivity(ctx);
   else ActivityUtil.startRequestCreateActivity(ctx);
 }
Example #6
0
 public static void startDelegateActivity(Context ctx) {
   ctx.startActivity(ActivityUtil.newIntent(ctx, DelegateActivity.class));
 }
Example #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));
 }