Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.gtug.trafficcam;
- import java.util.ArrayList;
- import android.graphics.drawable.Drawable;
- public class SynchronisedPics
- {
- private ArrayList<Drawable> pics = new ArrayList<Drawable>();
- public synchronized void add(Drawable newDrawable)
- {
- pics.add(newDrawable);
- }
- public synchronized ArrayList<Drawable> output()
- {
- return pics;
- }
- public synchronized void restore()
- {
- pics.clear();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement