mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
add twilio shoutout to registration
// FREEBIE
This commit is contained in:
parent
59772504e3
commit
59c51127f6
BIN
res/drawable-hdpi/ic_twilio_shoutout_white.png
Normal file
BIN
res/drawable-hdpi/ic_twilio_shoutout_white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.5 KiB |
BIN
res/drawable-mdpi/ic_twilio_shoutout_white.png
Normal file
BIN
res/drawable-mdpi/ic_twilio_shoutout_white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
BIN
res/drawable-xhdpi/ic_twilio_shoutout_white.png
Normal file
BIN
res/drawable-xhdpi/ic_twilio_shoutout_white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
BIN
res/drawable-xxhdpi/ic_twilio_shoutout_white.png
Normal file
BIN
res/drawable-xxhdpi/ic_twilio_shoutout_white.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.4 KiB |
@ -93,5 +93,13 @@
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView android:id="@+id/twilio_shoutout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/ic_twilio_shoutout_white"
|
||||
android:layout_gravity="right"
|
||||
android:tint="@color/grey_800"
|
||||
android:contentDescription="@string/registration_activity__powered_by_twilio"/>
|
||||
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
@ -632,6 +632,7 @@
|
||||
<string name="registration_activity__phone_number">PHONE NUMBER</string>
|
||||
<string name="registration_activity__register">Register</string>
|
||||
<string name="registration_activity__registration_will_transmit_some_contact_information_to_the_server_temporariliy">Registration transmits some contact information to the server. It is not stored.</string>
|
||||
<string name="registration_activity__powered_by_twilio">Powered by twilio</string>
|
||||
|
||||
<!-- registration_problems -->
|
||||
<string name="registration_problems__some_possible_problems_include">Some possible problems
|
||||
@ -980,7 +981,6 @@
|
||||
<string name="transport_selection_list_item__transport_icon">Transport icon</string>
|
||||
|
||||
|
||||
|
||||
<!-- EOF -->
|
||||
|
||||
</resources>
|
||||
|
@ -3,6 +3,7 @@ package org.thoughtcrime.securesms;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.telephony.TelephonyManager;
|
||||
import android.text.Editable;
|
||||
@ -91,6 +92,17 @@ public class RegistrationActivity extends BaseActionBarActivity {
|
||||
} else {
|
||||
this.skipButton.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
|
||||
findViewById(R.id.twilio_shoutout).setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Intent intent = new Intent();
|
||||
intent.setAction(Intent.ACTION_VIEW);
|
||||
intent.addCategory(Intent.CATEGORY_BROWSABLE);
|
||||
intent.setData(Uri.parse("https://twilio.com"));
|
||||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void initializeSpinner() {
|
||||
|
Loading…
Reference in New Issue
Block a user