Skip to content

Commit 2c2a03e

Browse files
rhodeymoxie0
authored andcommitted
Enhanced MMS configuration prompts and processing.
1) Added a new message status to MmsDatabase to signify a pending MMS download which requires APN settings. 2) Added a database method to query MMS messages based on status. 3) Added login to SendReceiveService for processing of MMS pending APN information. 4) Moved all APN/MMS settings into ApnPreferencesActivity and transformed PromptApnActivity into a simple informational activity. 5) Added logic to check for APN settings on send and receive of all MMS (media, group, email) and direct user to PromptApnActivity then ApnPreferencesActivity if necessary. 6) Vocab/grammar adjustments.
1 parent f3fdde6 commit 2c2a03e

37 files changed

Lines changed: 573 additions & 439 deletions

AndroidManifest.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,15 @@
7575
<activity android:name=".ImportExportActivity"
7676
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
7777

78-
<activity android:name=".PromptApnActivity"
78+
<activity android:name=".PromptMmsActivity"
7979
android:label="Configure MMS Settings"
8080
android:windowSoftInputMode="stateUnchanged"
8181
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
8282

83-
<activity android:name=".ConversationListActivity"
83+
<activity android:name=".MmsPreferencesActivity"
84+
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
85+
86+
<activity android:name=".ConversationListActivity"
8487
android:label="@string/app_name"
8588
android:launchMode="singleTask"
8689
android:uiOptions="splitActionBarWhenNarrow"

res/layout/prompt_apn_activity.xml

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -23,44 +23,13 @@
2323
android:layout_width="fill_parent"
2424
android:layout_height="wrap_content"
2525
android:layout_marginBottom="16dip"
26-
android:text="@string/prompt_apn_activity__textsecure_requires_apn_settings_to_deliver_media_messages_via_your_wireless_carrier"/>
26+
android:text="@string/prompt_mms_activity__textsecure_requires_mms_settings_to_deliver_media_and_group_messages"/>
2727

2828
<TextView style="@style/Registration.Description"
2929
android:layout_width="fill_parent"
3030
android:layout_height="wrap_content"
3131
android:layout_marginBottom="16dip"
32-
android:text="@string/prompt_apn_activity__to_send_media_messages_please_complete_the_necessary_apn_information_below"/>
33-
34-
<TextView style="@style/Registration.Label"
35-
android:layout_width="fill_parent"
36-
android:text="@string/prompt_apn_activity__mmsc_url_required"/>
37-
38-
<EditText android:id="@+id/mmsc_url"
39-
android:layout_width="fill_parent"
40-
android:layout_height="wrap_content"
41-
android:singleLine="true"
42-
android:layout_marginBottom="10dip" />
43-
44-
<TextView style="@style/Registration.Label"
45-
android:layout_width="fill_parent"
46-
android:text="@string/prompt_apn_activity__mms_proxy_host_optional"/>
47-
48-
<EditText android:id="@+id/mms_proxy_host"
49-
android:layout_width="fill_parent"
50-
android:layout_height="wrap_content"
51-
android:singleLine="true"
52-
android:layout_marginBottom="10dip" />
53-
54-
<TextView style="@style/Registration.Label"
55-
android:layout_width="fill_parent"
56-
android:text="@string/prompt_apn_activity__mms_proxy_port_optional"/>
57-
58-
<EditText android:id="@+id/mms_proxy_port"
59-
android:layout_width="fill_parent"
60-
android:layout_height="wrap_content"
61-
android:layout_marginBottom="10dip"
62-
android:inputType="number"
63-
android:singleLine="true" />
32+
android:text="@string/prompt_mms_activity__to_send_media_and_group_messages_click_ok"/>
6433

6534
<LinearLayout android:orientation="horizontal"
6635
android:gravity="center"

res/values-ar/strings.xml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@
115115
<string name="PassphraseCreateActivity_you_must_specify_a_password">يجب أن تحدد كلمة سرية</string>
116116
<!--PassphrasePromptActivity-->
117117
<string name="PassphrasePromptActivity_invalid_passphrase_exclamation">عبارة سرية غير صحيحة!</string>
118-
<!--PromptApnActivity-->
119-
<string name="PromptApnActivity_you_must_specify_an_mmsc_url_for_your_carrier">يجب أن تحدد عنوان أو رابط لمركز رسائل الوسائط المتعددة.</string>
120-
<string name="PromptApnActivity_mms_settings_updated">تم تعديل اعدادات رسائل الوسائط المتعددة</string>
121-
<string name="PromptApnActivity_you_can_modify_these_values_from_the_textsecure_settings_menu_at_any_time_">يمكنك تعديل هذه البيانات من اعدادات تكست سكيور بأي وقت.</string>
118+
<!--PromptMmsActivity-->
119+
<string name="PromptMmsActivity_you_must_specify_an_mmsc_url_for_your_carrier">يجب أن تحدد عنوان أو رابط لمركز رسائل الوسائط المتعددة.</string>
120+
<string name="PromptMmsActivity_mms_settings_updated">تم تعديل اعدادات رسائل الوسائط المتعددة</string>
121+
<string name="PromptMmsActivity_you_can_modify_these_values_from_the_textsecure_settings_menu_at_any_time_">يمكنك تعديل هذه البيانات من اعدادات تكست سكيور بأي وقت.</string>
122122
<!--ReceiveKeyActivity-->
123123
<string name="ReceiveKeyActivity_the_signature_on_this_key_exchange_is_different">المفتاح لجهة الاتصال هذه مختلف عن المرة السابقة. هذا قد يعني ان هناك محاولة لاعتراض اتصالاتك، أو ان جهة الاتصال قام\قامت بإعادة تنصيب تكست سيكيور لديهم.</string>
124124
<string name="ReceiveKeyActivity_you_may_wish_to_verify_this_contact">ربما تود التحقق من جهة الاتصال هذه</string>
@@ -238,11 +238,11 @@
238238
<string name="prompt_passphrase_activity__textsecure_passphrase">العبارة السرية لتكست سيكيور</string>
239239
<string name="prompt_passphrase_activity__unlock">فتح القفل</string>
240240
<!--prompt_apn_activity-->
241-
<string name="prompt_apn_activity__textsecure_requires_apn_settings_to_deliver_media_messages_via_your_wireless_carrier">تكست سيكيور يحتاج لإعدادات الشبكة APN لتوصيل رسائل الوسائط المتعددة. جهازك لا يوفر هذه المعلومة.</string>
242-
<string name="prompt_apn_activity__to_send_media_messages_please_complete_the_necessary_apn_information_below">لإرسال رسائل الوسائط المتعددة، يجب عليك اكمال اعدادات الشبكة APN. تحتاج لادخال هذه المعلومة مرة واحدة فقط.</string>
243-
<string name="prompt_apn_activity__mmsc_url_required">عنوان مركز رسائل الوسائط المتعددة (الزامي)</string>
244-
<string name="prompt_apn_activity__mms_proxy_host_optional">عنوان بروكسي مركز رسائل الوسائط المتعددة (اختياري):</string>
245-
<string name="prompt_apn_activity__mms_proxy_port_optional">منفذ بروكسي مركز رسائل الوسائط المتعددة (اختياري):</string>
241+
<string name="prompt_mms_activity__textsecure_requires_mms_settings_to_deliver_media_and_group_messages">تكست سيكيور يحتاج لإعدادات الشبكة APN لتوصيل رسائل الوسائط المتعددة. جهازك لا يوفر هذه المعلومة.</string>
242+
<string name="prompt_mms_activity__to_send_media_and_group_messages_click_ok">لإرسال رسائل الوسائط المتعددة، يجب عليك اكمال اعدادات الشبكة APN. تحتاج لادخال هذه المعلومة مرة واحدة فقط.</string>
243+
<string name="prompt_mms_activity__mmsc_url_required">عنوان مركز رسائل الوسائط المتعددة (الزامي)</string>
244+
<string name="prompt_mms_activity__mms_proxy_host_optional">عنوان بروكسي مركز رسائل الوسائط المتعددة (اختياري):</string>
245+
<string name="prompt_mms_activity__mms_proxy_port_optional">منفذ بروكسي مركز رسائل الوسائط المتعددة (اختياري):</string>
246246
<!--receive_key_activity-->
247247
<string name="receive_key_activity__complete">انتهاء</string>
248248
<!--recipients_panel-->
@@ -325,8 +325,8 @@
325325
<string name="preferences__advanced">متقدم</string>
326326
<string name="preferences__passphrase">العبارة السرية</string>
327327
<string name="preferences__advanced_mms_access_point_names">مركز رسائل الوسائط المتعددة الاحتياطي</string>
328-
<string name="preferences__enable_fallback_mmsc">شغل مركز رسائل الوسائط المتعددة الاحتياطي</string>
329-
<string name="preferences__use_mmsc_information_configured_here_when_system_apn_information_is_unavailable">استخدم مركز رسائل الوسائط المتعددة هنا اذا لم تتوفر بيناتات اتصال النظام APN</string>
328+
<string name="preferences__enable_manual_mms">شغل مركز رسائل الوسائط المتعددة الاحتياطي</string>
329+
<string name="preferences__override_system_mms_settings">استخدم مركز رسائل الوسائط المتعددة هنا اذا لم تتوفر بيناتات اتصال النظام APN</string>
330330
<string name="preferences__mmsc_url_required">عنوان مركز رسائل الوسائط المتعددة (الزامي)</string>
331331
<string name="preferences__mms_proxy_host_optional">عنوان بروكسي رسائل الوسائط المتعددة (غير الزامي)</string>
332332
<string name="preferences__mms_proxy_port_optional">منفذ او بورت بروكسي الرسائل الوسائط المتعددة (غير الزامي)</string>

res/values-bg/strings.xml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@
122122
<string name="PassphraseCreateActivity_you_must_specify_a_password">Трябва да посочите парола</string>
123123
<!--PassphrasePromptActivity-->
124124
<string name="PassphrasePromptActivity_invalid_passphrase_exclamation">Грешна Парола!</string>
125-
<!--PromptApnActivity-->
126-
<string name="PromptApnActivity_you_must_specify_an_mmsc_url_for_your_carrier">Трябва да определите MMSC URL за вашия оператор.</string>
127-
<string name="PromptApnActivity_mms_settings_updated">MMS настройки са обновени</string>
128-
<string name="PromptApnActivity_you_can_modify_these_values_from_the_textsecure_settings_menu_at_any_time_">Можете да промените тези стойности по всяко време от менюто за настройките на TextSecure</string>
125+
<!--PromptMmsActivity-->
126+
<string name="PromptMmsActivity_you_must_specify_an_mmsc_url_for_your_carrier">Трябва да определите MMSC URL за вашия оператор.</string>
127+
<string name="PromptMmsActivity_mms_settings_updated">MMS настройки са обновени</string>
128+
<string name="PromptMmsActivity_you_can_modify_these_values_from_the_textsecure_settings_menu_at_any_time_">Можете да промените тези стойности по всяко време от менюто за настройките на TextSecure</string>
129129
<!--ReceiveKeyActivity-->
130130
<string name="ReceiveKeyActivity_the_signature_on_this_key_exchange_is_different"> ⏎\nподписа на този обмен на ключове е по-различно от това, което сте получавали преди това от този ⏎\nконтакт. Това може да означава, че някой се опитва да прихване комуникацията ви, или ⏎\nче този контакт просто е преинсталирал TextSecure и сега има нов ключ за идентичност. ⏎</string>
131131
<string name="ReceiveKeyActivity_you_may_wish_to_verify_this_contact">Може би е добре да се провери ⏎\nтози контакт. ⏎</string>
@@ -250,11 +250,11 @@
250250
<string name="prompt_passphrase_activity__textsecure_passphrase">TEXTSECURE ПАРОЛА</string>
251251
<string name="prompt_passphrase_activity__unlock">Отключи</string>
252252
<!--prompt_apn_activity-->
253-
<string name="prompt_apn_activity__textsecure_requires_apn_settings_to_deliver_media_messages_via_your_wireless_carrier">TextSecure изисква APN настройки, за да достави медийни съобщения чрез вашата безжична мрежа. Вашето устройство не предоставят тази информация, която е вярно за заключени устройства и други ограничителни конфигурации.</string>
254-
<string name="prompt_apn_activity__to_send_media_messages_please_complete_the_necessary_apn_information_below">За да изпратите медийни съобщения, моля, попълнете необходимата информация за APN-долу. Стойностите за оператора ви могат да се намерят чрез търсене на \'&amp;lt;your carrier&amp;gt; APN\'. Вие трябва да направите това само веднъж.</string>
255-
<string name="prompt_apn_activity__mmsc_url_required">MMSC URL (ИЗИСКВАНО):</string>
256-
<string name="prompt_apn_activity__mms_proxy_host_optional">MMS PROXY HOST (ДОПЪЛНИТЕЛНО):</string>
257-
<string name="prompt_apn_activity__mms_proxy_port_optional">MMS PROXY PORT (ДОПЪЛНИТЕЛНО):</string>
253+
<string name="prompt_mms_activity__textsecure_requires_mms_settings_to_deliver_media_and_group_messages">TextSecure изисква APN настройки, за да достави медийни съобщения чрез вашата безжична мрежа. Вашето устройство не предоставят тази информация, която е вярно за заключени устройства и други ограничителни конфигурации.</string>
254+
<string name="prompt_mms_activity__to_send_media_and_group_messages_click_ok">За да изпратите медийни съобщения, моля, попълнете необходимата информация за APN-долу. Стойностите за оператора ви могат да се намерят чрез търсене на \'&amp;lt;your carrier&amp;gt; APN\'. Вие трябва да направите това само веднъж.</string>
255+
<string name="prompt_mms_activity__mmsc_url_required">MMSC URL (ИЗИСКВАНО):</string>
256+
<string name="prompt_mms_activity__mms_proxy_host_optional">MMS PROXY HOST (ДОПЪЛНИТЕЛНО):</string>
257+
<string name="prompt_mms_activity__mms_proxy_port_optional">MMS PROXY PORT (ДОПЪЛНИТЕЛНО):</string>
258258
<!--receive_key_activity-->
259259
<string name="receive_key_activity__complete">Завършен</string>
260260
<!--recipients_panel-->
@@ -339,8 +339,8 @@
339339
<string name="preferences__advanced">За напреднали</string>
340340
<string name="preferences__passphrase">Парола</string>
341341
<string name="preferences__advanced_mms_access_point_names">Резервен MMSC</string>
342-
<string name="preferences__enable_fallback_mmsc">Активирайте Резервен MMSC</string>
343-
<string name="preferences__use_mmsc_information_configured_here_when_system_apn_information_is_unavailable">Използвайте MMSC информация конфигурирана тук, когато системната APN информация не е налична.</string>
342+
<string name="preferences__enable_manual_mms">Активирайте Резервен MMSC</string>
343+
<string name="preferences__override_system_mms_settings">Използвайте MMSC информация конфигурирана тук, когато системната APN информация не е налична.</string>
344344
<string name="preferences__mmsc_url_required">MMSC URL (Задължително)</string>
345345
<string name="preferences__mms_proxy_host_optional">MMS Proxy Host (По изборl)</string>
346346
<string name="preferences__mms_proxy_port_optional">MMS Proxy Port (По избор)</string>

0 commit comments

Comments
 (0)