Loading src/com/android/gallery3d/app/GalleryAppImpl.java +6 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ public class GalleryAppImpl extends Application implements GalleryApp { private static final String DOWNLOAD_FOLDER = "download"; private static final long DOWNLOAD_CAPACITY = 64 * 1024 * 1024; // 64M private static GalleryAppImpl sGalleryAppImpl; private ImageCacheService mImageCacheService; private Object mLock = new Object(); Loading @@ -51,6 +52,7 @@ public class GalleryAppImpl extends Application implements GalleryApp { WidgetUtils.initialize(this); PicasaSource.initialize(this); UsageStatistics.initialize(this); sGalleryAppImpl = this; } @Override Loading @@ -58,6 +60,10 @@ public class GalleryAppImpl extends Application implements GalleryApp { return this; } public static Context getContext() { return sGalleryAppImpl; } @Override public synchronized DataManager getDataManager() { if (mDataManager == null) { Loading src/com/android/gallery3d/filtershow/FilterShowActivity.java +2 −1 Original line number Diff line number Diff line Loading @@ -483,7 +483,8 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL } } if (!found) { FilterRepresentation representation = new FilterDrawRepresentation(); FilterRepresentation representation = new FilterDrawRepresentation(getString(R.string.imageDraw)); Action action = new Action(this, representation); action.setIsDoubleAction(true); mCategoryGeometryAdapter.add(action); Loading src/com/android/gallery3d/filtershow/filters/FilterDrawRepresentation.java +4 −4 Original line number Diff line number Diff line Loading @@ -157,10 +157,10 @@ public class FilterDrawRepresentation extends FilterRepresentation { private Vector<StrokeData> mDrawing = new Vector<StrokeData>(); private StrokeData mCurrent; // used in the currently drawing style public FilterDrawRepresentation() { super("Draw"); public FilterDrawRepresentation(String name) { super(name); setFilterClass(ImageFilterDraw.class); setSerializationName("DRAW"); setSerializationName(name); setFilterType(FilterRepresentation.TYPE_VIGNETTE); setTextId(R.string.imageDraw); setEditorId(EditorDraw.ID); Loading Loading @@ -190,7 +190,7 @@ public class FilterDrawRepresentation extends FilterRepresentation { @Override public FilterRepresentation copy() { FilterDrawRepresentation representation = new FilterDrawRepresentation(); FilterDrawRepresentation representation = new FilterDrawRepresentation(getName()); copyAllParameters(representation); return representation; } Loading src/com/android/gallery3d/filtershow/filters/ImageFilterDraw.java +5 −2 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ import android.graphics.PorterDuff; import android.graphics.PorterDuffColorFilter; import com.android.gallery3d.R; import com.android.gallery3d.app.GalleryAppImpl; import com.android.gallery3d.app.Log; import com.android.gallery3d.filtershow.cache.ImageLoader; import com.android.gallery3d.filtershow.filters.FilterDrawRepresentation.StrokeData; Loading @@ -47,7 +48,8 @@ public class ImageFilterDraw extends ImageFilter { int mCachedStrokes = -1; int mCurrentStyle = 0; FilterDrawRepresentation mParameters = new FilterDrawRepresentation(); FilterDrawRepresentation mParameters = new FilterDrawRepresentation( GalleryAppImpl.getContext().getString(R.string.imageDraw)); public ImageFilterDraw() { mName = "Image Draw"; Loading @@ -69,7 +71,8 @@ public class ImageFilterDraw extends ImageFilter { @Override public FilterRepresentation getDefaultRepresentation() { return new FilterDrawRepresentation(); return new FilterDrawRepresentation( GalleryAppImpl.getContext().getString(R.string.imageDraw)); } @Override Loading src/org/codeaurora/gallery3d/ext/IMovieListLoader.java +2 −1 Original line number Diff line number Diff line package org.codeaurora.gallery3d.ext; import android.app.Activity; import android.content.Context; import android.content.Intent; Loading Loading @@ -35,7 +36,7 @@ public interface IMovieListLoader { * @param l * @param item */ void fillVideoList(Context context, Intent intent, LoaderListener l, IMovieItem item); void fillVideoList(Activity context, Intent intent, LoaderListener l, IMovieItem item); /** * enable video list or not. * @param intent Loading Loading
src/com/android/gallery3d/app/GalleryAppImpl.java +6 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ public class GalleryAppImpl extends Application implements GalleryApp { private static final String DOWNLOAD_FOLDER = "download"; private static final long DOWNLOAD_CAPACITY = 64 * 1024 * 1024; // 64M private static GalleryAppImpl sGalleryAppImpl; private ImageCacheService mImageCacheService; private Object mLock = new Object(); Loading @@ -51,6 +52,7 @@ public class GalleryAppImpl extends Application implements GalleryApp { WidgetUtils.initialize(this); PicasaSource.initialize(this); UsageStatistics.initialize(this); sGalleryAppImpl = this; } @Override Loading @@ -58,6 +60,10 @@ public class GalleryAppImpl extends Application implements GalleryApp { return this; } public static Context getContext() { return sGalleryAppImpl; } @Override public synchronized DataManager getDataManager() { if (mDataManager == null) { Loading
src/com/android/gallery3d/filtershow/FilterShowActivity.java +2 −1 Original line number Diff line number Diff line Loading @@ -483,7 +483,8 @@ public class FilterShowActivity extends FragmentActivity implements OnItemClickL } } if (!found) { FilterRepresentation representation = new FilterDrawRepresentation(); FilterRepresentation representation = new FilterDrawRepresentation(getString(R.string.imageDraw)); Action action = new Action(this, representation); action.setIsDoubleAction(true); mCategoryGeometryAdapter.add(action); Loading
src/com/android/gallery3d/filtershow/filters/FilterDrawRepresentation.java +4 −4 Original line number Diff line number Diff line Loading @@ -157,10 +157,10 @@ public class FilterDrawRepresentation extends FilterRepresentation { private Vector<StrokeData> mDrawing = new Vector<StrokeData>(); private StrokeData mCurrent; // used in the currently drawing style public FilterDrawRepresentation() { super("Draw"); public FilterDrawRepresentation(String name) { super(name); setFilterClass(ImageFilterDraw.class); setSerializationName("DRAW"); setSerializationName(name); setFilterType(FilterRepresentation.TYPE_VIGNETTE); setTextId(R.string.imageDraw); setEditorId(EditorDraw.ID); Loading Loading @@ -190,7 +190,7 @@ public class FilterDrawRepresentation extends FilterRepresentation { @Override public FilterRepresentation copy() { FilterDrawRepresentation representation = new FilterDrawRepresentation(); FilterDrawRepresentation representation = new FilterDrawRepresentation(getName()); copyAllParameters(representation); return representation; } Loading
src/com/android/gallery3d/filtershow/filters/ImageFilterDraw.java +5 −2 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ import android.graphics.PorterDuff; import android.graphics.PorterDuffColorFilter; import com.android.gallery3d.R; import com.android.gallery3d.app.GalleryAppImpl; import com.android.gallery3d.app.Log; import com.android.gallery3d.filtershow.cache.ImageLoader; import com.android.gallery3d.filtershow.filters.FilterDrawRepresentation.StrokeData; Loading @@ -47,7 +48,8 @@ public class ImageFilterDraw extends ImageFilter { int mCachedStrokes = -1; int mCurrentStyle = 0; FilterDrawRepresentation mParameters = new FilterDrawRepresentation(); FilterDrawRepresentation mParameters = new FilterDrawRepresentation( GalleryAppImpl.getContext().getString(R.string.imageDraw)); public ImageFilterDraw() { mName = "Image Draw"; Loading @@ -69,7 +71,8 @@ public class ImageFilterDraw extends ImageFilter { @Override public FilterRepresentation getDefaultRepresentation() { return new FilterDrawRepresentation(); return new FilterDrawRepresentation( GalleryAppImpl.getContext().getString(R.string.imageDraw)); } @Override Loading
src/org/codeaurora/gallery3d/ext/IMovieListLoader.java +2 −1 Original line number Diff line number Diff line package org.codeaurora.gallery3d.ext; import android.app.Activity; import android.content.Context; import android.content.Intent; Loading Loading @@ -35,7 +36,7 @@ public interface IMovieListLoader { * @param l * @param item */ void fillVideoList(Context context, Intent intent, LoaderListener l, IMovieItem item); void fillVideoList(Activity context, Intent intent, LoaderListener l, IMovieItem item); /** * enable video list or not. * @param intent Loading