Code example for AtomicInteger

Methods: getAndIncrement

0
 
		if (systemProperties != null
				&& systemProperties.getBool("ti.android.bug2373.finishfalseroot", false)) {
			finishing2373 = true;
		} else if (Build.MODEL.toLowerCase().contains(KINDLE_MODEL)
				&& creationCounter.getAndIncrement() > 0
				&& intent.getFlags() == KINDLE_FIRE_RESTART_FLAGS) {
			finishing2373 = true;
		} 
 
		if (finishing2373) {
			// Jumps over TiBaseActivity's onCreate to fulfill directly 
			// the requirement that all Activity-derived classes must 
			// call Activity.onCreate. 
			activityOnCreate(savedInstanceState);
			finish(); 
		} 
 
		return finishing2373;
	}