diff options
author | Mason Tang <masontang@google.com> | 2010-08-04 17:28:47 -0700 |
---|---|---|
committer | Mason Tang <masontang@google.com> | 2010-08-04 17:28:47 -0700 |
commit | 124d08889f978b9108cfce8a777dcf2e8bbc96a6 (patch) | |
tree | 35dcd0e37de7b1b6551695b9c7ee83df6e40ae74 /src/com/android/calendar/Utils.java | |
parent | 36daf14edbea260f54fb8f650db407e6f5f73ca8 (diff) | |
download | android_packages_apps_Calendar-124d08889f978b9108cfce8a777dcf2e8bbc96a6.tar.gz android_packages_apps_Calendar-124d08889f978b9108cfce8a777dcf2e8bbc96a6.tar.bz2 android_packages_apps_Calendar-124d08889f978b9108cfce8a777dcf2e8bbc96a6.zip |
Cleanup of Utils, removed unused functions
Change-Id: If990de6545ca495721b5197881f81d96013d0d9c
Diffstat (limited to 'src/com/android/calendar/Utils.java')
-rw-r--r-- | src/com/android/calendar/Utils.java | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/com/android/calendar/Utils.java b/src/com/android/calendar/Utils.java index f6feb9f1..d7ebb1db 100644 --- a/src/com/android/calendar/Utils.java +++ b/src/com/android/calendar/Utils.java @@ -33,8 +33,6 @@ import android.os.Bundle; import android.text.TextUtils; import android.text.format.Time; import android.util.Log; -import android.view.animation.AlphaAnimation; -import android.widget.ViewFlipper; import java.util.Calendar; import java.util.List; @@ -90,16 +88,6 @@ public class Utils { CalendarPreferenceActivity.DEFAULT_START_VIEW); } - public static void startActivity(Context context, String className, long time) { - Intent intent = new Intent(Intent.ACTION_VIEW); - - intent.setClassName(context, className); - intent.putExtra(EVENT_BEGIN_TIME, time); - intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT | Intent.FLAG_ACTIVITY_SINGLE_TOP); - - context.startActivity(intent); - } - static String getSharedPreference(Context context, String key, String defaultValue) { SharedPreferences prefs = CalendarPreferenceActivity.getSharedPreferences(context); return prefs.getString(key, defaultValue); @@ -137,12 +125,6 @@ public class Utils { editor.commit(); } - public static final Time timeFromIntent(Intent intent) { - Time time = new Time(); - time.set(timeFromIntentInMillis(intent)); - return time; - } - public static MatrixCursor matrixCursorFromCursor(Cursor cursor) { MatrixCursor newCursor = new MatrixCursor(cursor.getColumnNames()); int numColumns = cursor.getColumnCount(); @@ -215,21 +197,6 @@ public class Utils { return millis; } - public static final void applyAlphaAnimation(ViewFlipper v) { - AlphaAnimation in = new AlphaAnimation(0.0f, 1.0f); - - in.setStartOffset(0); - in.setDuration(500); - - AlphaAnimation out = new AlphaAnimation(1.0f, 0.0f); - - out.setStartOffset(0); - out.setDuration(500); - - v.setInAnimation(in); - v.setOutAnimation(out); - } - public static Drawable getColorChip(int color) { /* * We want the color chip to have a nice gradient using @@ -263,16 +230,6 @@ public class Utils { } /** - * Sets the time to the beginning of the day (midnight) by clearing the - * hour, minute, and second fields. - */ - static void setTimeToStartOfDay(Time time) { - time.second = 0; - time.minute = 0; - time.hour = 0; - } - - /** * Get first day of week as android.text.format.Time constant. * @return the first day of week in android.text.format.Time */ |