mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 07:27:26 +00:00
Inserted the Registration activity into initial setup flow.
1) Added push messaging toggle to preferences. 2) Added push messaging registration screen to setup flow. 3) Migrated rest of SharedPreferences accessors to TextSecurePreferences.
This commit is contained in:
@@ -18,4 +18,13 @@
|
||||
android:choiceMode="singleChoice"
|
||||
android:dividerHeight="1dp"
|
||||
android:background="?navigation_drawer_background"/>
|
||||
|
||||
<TextView android:id="@android:id/empty"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:gravity="center"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:textColor="?conversation_text_secondary_color"
|
||||
android:text="Empty message list" />
|
||||
|
||||
</android.support.v4.widget.DrawerLayout>
|
@@ -19,7 +19,7 @@
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_marginBottom="16dip"
|
||||
android:layout_marginTop="16dip"
|
||||
android:text="@string/registration_activity__please_confirm_your_country_code_and_phone_number"/>
|
||||
android:text="@string/registration_activity__textsecure_can_use_the_data_channel_to_avoid_sms_charges_when_communicating_with_other_textsecure_users"/>
|
||||
|
||||
<TextView style="@style/Registration.Label"
|
||||
android:layout_width="fill_parent"
|
||||
@@ -65,14 +65,28 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/registerButton"
|
||||
android:text="@string/registration_activity__register"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:layout_marginTop="20dip"
|
||||
android:layout_marginBottom="20dip"/>
|
||||
<LinearLayout android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dip"
|
||||
android:layout_marginBottom="20dip"
|
||||
android:layout_gravity="right"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<Button android:id="@+id/skipButton"
|
||||
android:text="Skip"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="5dip"
|
||||
android:layout_weight="1"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
|
||||
<Button android:id="@+id/registerButton"
|
||||
android:text="@string/registration_activity__register"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
@@ -21,6 +21,9 @@
|
||||
able to access them.
|
||||
</string>
|
||||
<string name="ApplicationPreferencesActivity_disable">Disable</string>
|
||||
<string name="ApplicationPreferencesActivity_unregistering">Unregistering...</string>
|
||||
<string name="ApplicationPreferencesActivity_unregistering_for_data_based_communication">Unregistering for data based communication</string>
|
||||
<string name="ApplicationPreferencesActivity_error_connecting_to_server">Error connecting to server!</string>
|
||||
|
||||
<!-- AttachmentTypeSelectorAdapter -->
|
||||
|
||||
@@ -438,8 +441,9 @@
|
||||
<string name="receive_key_activity__complete">Complete</string>
|
||||
|
||||
<!-- registration_activity -->
|
||||
<string name="registration_activity__please_confirm_your_country_code_and_phone_number">Please
|
||||
confirm your country code and phone number.
|
||||
<string name="registration_activity__textsecure_can_use_the_data_channel_to_avoid_sms_charges_when_communicating_with_other_textsecure_users">
|
||||
TextSecure can use the data channel to avoid SMS charges when communicating with other
|
||||
TextSecure users. To enable this feature, please verify your country code and phone number.
|
||||
</string>
|
||||
<string name="registration_activity__your_country">YOUR COUNTRY</string>
|
||||
<string name="registration_activity__your_country_code_and_phone_number">YOUR COUNTRY CODE AND
|
||||
@@ -628,6 +632,10 @@
|
||||
<string name="preferences__language">Language</string>
|
||||
<string name="preferences__make_default_sms_app">Set as default SMS app</string>
|
||||
<string name="preferences__make_textsecure_the_default_sms_mms_app">Make TextSecure the default SMS/MMS application for your system.</string>
|
||||
<string name="preferences__use_data_channel">Use data channel</string>
|
||||
<string name="preferences__use_the_data_channel_for_communication_with_other_textsecure_users">
|
||||
Use the data channel for communication with other TextSecure users
|
||||
</string>
|
||||
|
||||
<!-- **************************************** -->
|
||||
<!-- menus -->
|
||||
|
@@ -21,6 +21,11 @@
|
||||
android:summary="@string/preferences__request_a_delivery_report_for_each_sms_message_you_send"
|
||||
android:title="@string/preferences__sms_delivery_reports" />
|
||||
|
||||
<CheckBoxPreference android:defaultValue="false"
|
||||
android:key="pref_toggle_push_messaging"
|
||||
android:title="@string/preferences__use_data_channel"
|
||||
android:summary="@string/preferences__use_the_data_channel_for_communication_with_other_textsecure_users"/>
|
||||
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="@string/preferences__notifications">
|
||||
<CheckBoxPreference android:key="pref_key_enable_notifications"
|
||||
|
Reference in New Issue
Block a user