material actionbar and fab

// FREEBIE
This commit is contained in:
Jake McGinty
2015-01-20 21:26:58 -10:00
parent 62816ee51a
commit 810abe0275
287 changed files with 211 additions and 44358 deletions

View File

@@ -276,20 +276,6 @@ public class Util {
}
}
/*
* source: http://stackoverflow.com/a/9500334
*/
public static void fixBackgroundRepeat(Drawable bg) {
if (bg != null) {
if (bg instanceof BitmapDrawable) {
BitmapDrawable bmp = (BitmapDrawable) bg;
bmp.mutate();
bmp.setTileModeXY(Shader.TileMode.REPEAT, Shader.TileMode.REPEAT);
}
}
}
public static boolean isBuildFresh() {
return BuildConfig.BUILD_TIMESTAMP + TimeUnit.DAYS.toMillis(180) > System.currentTimeMillis();
}