mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-17 12:08:26 +00:00
Extract string resources
This commit is contained in:
parent
e31ce39967
commit
de812d3f0f
@ -1246,6 +1246,8 @@
|
||||
<string name="conversation_list_item_inbox_zero__zip_zilch_zero_nada_nyou_re_all_caught_up">Zip. Zilch. Zero. Nada. You\'re all caught up!</string>
|
||||
<string name="ConversationListFragment_no_results_found_for_s_">No results found for \'%s\'</string>
|
||||
<string name="SearchToolbar_search">Search</string>
|
||||
<string name="UnauthorizedReminder_device_no_longer_registered">Device no longer registered</string>
|
||||
<string name="UnauthorizedReminder_this_is_likely_because_you_registered_your_phone_number_with_Signal_on_a_different_device">This is likely because you registered your phone number with Signal on a different device. Tap to re-register.</string>
|
||||
|
||||
|
||||
<!-- EOF -->
|
||||
|
@ -4,14 +4,15 @@ package org.thoughtcrime.securesms.components.reminder;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
||||
import org.thoughtcrime.securesms.R;
|
||||
import org.thoughtcrime.securesms.RegistrationActivity;
|
||||
import org.thoughtcrime.securesms.util.TextSecurePreferences;
|
||||
|
||||
public class UnauthorizedReminder extends Reminder {
|
||||
|
||||
public UnauthorizedReminder(final Context context) {
|
||||
super("Device no longer registered",
|
||||
"This is likely because you registered your phone number with Signal on a different device. Tap to re-register.");
|
||||
super(context.getString(R.string.UnauthorizedReminder_device_no_longer_registered),
|
||||
context.getString(R.string.UnauthorizedReminder_this_is_likely_because_you_registered_your_phone_number_with_Signal_on_a_different_device));
|
||||
|
||||
setOkListener(v -> context.startActivity(new Intent(context, RegistrationActivity.class)));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user