/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone {
	public static void main (String[] args) throws java.lang.Exception {
		int position = 0;
		
		switch (position) {
			case 1:
			    Toast.makeText(Home.this, "Акции временно не работают", Toast.LENGTH_LONG).show();
				break;
			case 2:
			    if (strTotalPrice<500) {
			    	Toast.makeText(Home.this, "Минимальная сумма заказа 500 руб.", Toast.LENGTH_SHORT).show();
			    	break;
			    }
			    /* falls through */
			default:
			    viewPager.setCurrentItem(position, false);
		}

		drawerLayout.closeDrawers();
	}
}