mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -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:
parent
d67307a2f8
commit
331a6ca99b
@ -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
|
||||
|
@ -21,7 +21,15 @@ public class K9Activity extends Activity
|
||||
@Override
|
||||
public void onCreate(Bundle icicle)
|
||||
{
|
||||
setTheme(K9.getK9Theme());
|
||||
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)
|
||||
{
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user