public synchronized static void saveLock(ApplicationDescriptor desc, boolean locked) { if (locked) { if (!locks.contains(desc.getApplicationId())) { dirty = true; locks.add(desc.getApplicationId());
public static void saveLock(ApplicationDescriptor desc, boolean locked) { synchronized (locks) { if (locked) { if (!locks.contains(desc.getApplicationId())) { locks.add(desc.getApplicationId()); saveData(FILE_APPLOCKS); } } else if (locks.remove(desc.getApplicationId())) { saveData(FILE_APPLOCKS);
	public synchronized static void saveLock(ApplicationDescriptor desc, boolean locked) {		if (locked) {			if (!locks.contains(desc.getApplicationId())) {				dirty = true;				locks.add(desc.getApplicationId());			}		} else if (locks.remove(desc.getApplicationId())) {			dirty = true;		}	}