Refactor FolderIcon to separate the preview effect into it's own class

-> Created com.android.launcher3.folder package to house most folder-related files
   (aside from the FolderInfo) which is more related to the model than the UI.

Change-Id: I767063e1e4c775c01a799a3bede30cd94ac48ade
This commit is contained in:
Adam Cohen
2016-01-15 16:47:43 -08:00
parent c338ea74c2
commit f9c184a619
23 changed files with 233 additions and 99 deletions
@@ -12,7 +12,7 @@ import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
class PreloadIconDrawable extends Drawable {
public class PreloadIconDrawable extends Drawable {
private static final float ANIMATION_PROGRESS_STOPPED = -1.0f;
private static final float ANIMATION_PROGRESS_STARTED = 0f;
@@ -30,7 +30,7 @@ class PreloadIconDrawable extends Drawable {
private boolean mIndicatorRectDirty;
private final Paint mPaint;
final Drawable mIcon;
public final Drawable mIcon;
private Drawable mBgDrawable;
private int mRingOutset;