summaryrefslogtreecommitdiff
path: root/AndroidManifest.xml
diff options
context:
space:
mode:
authorWei Huang <weih@google.com>2009-08-25 01:55:44 -0700
committerWei Huang <weih@google.com>2009-08-25 13:37:35 -0700
commit812391ad832f3fdac054ad3a50af563da16e99b5 (patch)
tree9dc788653c4a8d9ca3b1f7b44f46e8084ce6a6ad /AndroidManifest.xml
parent0be5770b07cbd03eea9cd821ef02c8480020b162 (diff)
downloadMms-812391ad832f3fdac054ad3a50af563da16e99b5.tar.gz
Add onNewIntent() to ComposeMessageActivity, and add the launchmode="singleTop" to AndroidManifest.xml. Just specifying the intent flag Intent.FLAG_ACTIVITY_SINGLE_TOP doesn't make the activity single top.
(cc: Dianne only for the activity launch mode flags in AndroidManifest.xml) - the singletop launch mode is needed for the case when we receive a new message notification for the same contact that's on CMA already. If CMA has a MMS draft on screen (but not saved to db yet), not going thru. onNewIntent() would cause the following bad sequence. - onCreate() would load any draft saved in db, but in this case there isn't draft saved in db yet because we only save draft in CMA.onStop(). So loadDraft() would load the empty draft. - onStop() on the old CMA activity would now save the in-memory MMS draft to db. - the new CMA lost the MMS draft that's there before clicking on the notification. But resulting db has the MMS draft, which is now orphaned and not associated with the conversation. From here on out, entering and exiting the CMA for this conversation would not see the MMS draft, but it's there in the part table in db. VERY BAD! so with onNewIntent(), we can check if the new intent's recipient is the same as the old one, and skip the whole shenanigan. - add debug logging for draft cache. Changed the log tag for draft cache to "Mms:draft", and CMA to "Mms:compose". - guard against null cursor returned from Contacts query. Contacts is very flaky right now, and I am getting a null cursor from it all the time. - reorg logging. Add new LogTag class. Log MMS app logs using "Mms:app" and transaction logs using "Mms:transaction". Change-Id: I5e12c87ab378ff9b6ff326e136598f64bd423129
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r--AndroidManifest.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index bd736c42..6625401b 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -73,7 +73,8 @@
<activity android:name=".ui.ComposeMessageActivity"
android:configChanges="orientation|keyboardHidden"
- android:windowSoftInputMode="stateHidden">
+ android:windowSoftInputMode="stateHidden"
+ android:launchMode="singleTop" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />