mirror of https://github.com/moparisthebest/k-9
46 lines
915 B
Java
46 lines
915 B
Java
package com.android.email;
|
|
|
|
|
|
import android.app.Activity;
|
|
import android.os.Bundle;
|
|
import com.android.email.activity.DateFormatter;
|
|
|
|
|
|
public class K9Activity extends Activity
|
|
{
|
|
@Override
|
|
public void onCreate(Bundle icicle)
|
|
{
|
|
setTheme(Email.getK9Theme());
|
|
super.onCreate(icicle);
|
|
setupFormats();
|
|
}
|
|
|
|
@Override
|
|
public void onResume()
|
|
{
|
|
super.onResume();
|
|
setupFormats();
|
|
}
|
|
|
|
private java.text.DateFormat mDateFormat;
|
|
private java.text.DateFormat mTimeFormat;
|
|
|
|
private void setupFormats()
|
|
{
|
|
|
|
mDateFormat = DateFormatter.getDateFormat(this);
|
|
mTimeFormat = android.text.format.DateFormat.getTimeFormat(this); // 12/24 date format
|
|
}
|
|
|
|
public java.text.DateFormat getTimeFormat()
|
|
{
|
|
return mTimeFormat;
|
|
}
|
|
|
|
public java.text.DateFormat getDateFormat()
|
|
{
|
|
return mDateFormat;
|
|
}
|
|
}
|