removed unused code
This commit is contained in:
parent
e98200217a
commit
79f10da1b7
|
@ -67,7 +67,6 @@ import android.system.ErrnoException;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.text.format.DateFormat;
|
import android.text.format.DateFormat;
|
||||||
import android.text.format.DateUtils;
|
import android.text.format.DateUtils;
|
||||||
import android.text.format.Time;
|
|
||||||
import android.transition.Transition;
|
import android.transition.Transition;
|
||||||
import android.transition.TransitionInflater;
|
import android.transition.TransitionInflater;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
@ -497,16 +496,9 @@ public final class Utils implements Constants {
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
public static String formatToLongTimeString(final Context context, final long timestamp) {
|
public static String formatToLongTimeString(final Context context, final long timestamp) {
|
||||||
if (context == null) return null;
|
if (context == null) return null;
|
||||||
final Time then = new Time();
|
int formatFlags = DateUtils.FORMAT_NO_NOON_MIDNIGHT | DateUtils.FORMAT_ABBREV_ALL |
|
||||||
then.set(timestamp);
|
DateUtils.FORMAT_CAP_AMPM | DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_SHOW_TIME;
|
||||||
final Time now = new Time();
|
return DateUtils.formatDateTime(context, timestamp, formatFlags);
|
||||||
now.setToNow();
|
|
||||||
|
|
||||||
int format_flags = DateUtils.FORMAT_NO_NOON_MIDNIGHT | DateUtils.FORMAT_ABBREV_ALL | DateUtils.FORMAT_CAP_AMPM;
|
|
||||||
|
|
||||||
format_flags |= DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_SHOW_TIME;
|
|
||||||
|
|
||||||
return DateUtils.formatDateTime(context, timestamp, format_flags);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isComposeNowSupported(Context context) {
|
public static boolean isComposeNowSupported(Context context) {
|
||||||
|
|
Loading…
Reference in New Issue