1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 13:12:25 -05:00

- Always use light theme for the message view since we don't change the colors of the WebView (i.e. it always uses black text on a white background).

- Always display the date in the message view
This commit is contained in:
cketti 2010-05-02 00:10:55 +00:00
parent d67307a2f8
commit 331a6ca99b
3 changed files with 14 additions and 6 deletions

View File

@ -171,7 +171,8 @@
-->
</activity>
<activity
android:name="com.fsck.k9.activity.MessageView">
android:name="com.fsck.k9.activity.MessageView"
android:theme="@android:style/Theme.Light">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<data

View File

@ -20,8 +20,16 @@ public class K9Activity extends Activity
@Override
public void onCreate(Bundle icicle)
{
onCreate(icicle, true);
}
public void onCreate(Bundle icicle, boolean useTheme)
{
if (useTheme)
{
setTheme(K9.getK9Theme());
}
super.onCreate(icicle);
setupFormats();
@ -29,6 +37,7 @@ public class K9Activity extends Activity
gestureDetector = new GestureDetector(new MyGestureDetector());
}
@Override
public boolean dispatchTouchEvent(MotionEvent ev)
{

View File

@ -442,7 +442,7 @@ public class MessageView extends K9Activity implements OnClickListener
@Override
public void onCreate(Bundle icicle)
{
super.onCreate(icicle);
super.onCreate(icicle, false);
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
@ -1322,9 +1322,7 @@ public class MessageView extends K9Activity implements OnClickListener
{
String subjectText = message.getSubject();
String fromText = Address.toFriendly(message.getFrom());
String dateText = Utility.isDateToday(message.getSentDate()) ?
null :
getDateFormat().format(message.getSentDate());
String dateText = getDateFormat().format(message.getSentDate());
String timeText = getTimeFormat().format(message.getSentDate());
String toText = Address.toFriendly(message.getRecipients(RecipientType.TO));
String ccText = Address.toFriendly(message.getRecipients(RecipientType.CC));