Add missing strings
This commit is contained in:
parent
bf62766a4e
commit
9ad4962aa0
5 changed files with 5 additions and 43 deletions
|
@ -4,11 +4,8 @@
|
|||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
|
||||
<TextView
|
||||
android:text="@string/assistant_remote_provisioning_title"
|
||||
android:contentDescription="@string/content_description_welcome"
|
||||
style="@style/font6"
|
||||
android:textAllCaps="true"
|
||||
android:paddingTop="20dp"
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
android:orientation="vertical" >
|
||||
|
||||
<ImageView
|
||||
android:contentDescription="@string/content_description_welcome"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:adjustViewBounds="true"
|
||||
|
|
|
@ -85,6 +85,7 @@
|
|||
<string name="wizard_password_incorrect">Your password is invalid (6 characters min).</string>
|
||||
<string name="wizard_passwords_unmatched">Passwords do not match.</string>
|
||||
<string name="setup_confirm_username">Your username will be %s.\r\n\r\nIt may differ from your input to match requirements.\r\nDo you accept?</string>
|
||||
<string name="first_launch_no_login_password">Please enter your login and password</string>
|
||||
|
||||
<!-- Dailer -->
|
||||
<string name="address_bar_hint">Enter a number or an address</string>
|
||||
|
|
|
@ -205,41 +205,6 @@ public class ChatListFragment extends Fragment implements OnClickListener, OnIte
|
|||
backInCall.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
|
||||
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(LinphoneActivity.instance());
|
||||
boolean updateNeeded = prefs.getBoolean(getString(R.string.pref_first_time_linphone_chat_storage), true);
|
||||
updateNeeded = updateNeeded && !isVersionUsingNewChatStorage();
|
||||
if (updateNeeded) {
|
||||
AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() {
|
||||
private ProgressDialog pd;
|
||||
@Override
|
||||
protected void onPreExecute() {
|
||||
pd = new ProgressDialog(LinphoneActivity.instance());
|
||||
pd.setTitle(getString(R.string.wait));
|
||||
pd.setMessage(getString(R.string.importing_messages));
|
||||
pd.setCancelable(false);
|
||||
pd.setIndeterminate(true);
|
||||
pd.show();
|
||||
}
|
||||
@Override
|
||||
protected Void doInBackground(Void... arg0) {
|
||||
try {
|
||||
if (importAndroidStoredMessagedIntoLibLinphoneStorage()) {
|
||||
prefs.edit().putBoolean(getString(R.string.pref_first_time_linphone_chat_storage), false).commit();
|
||||
LinphoneActivity.instance().getChatStorage().restartChatStorage();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@Override
|
||||
protected void onPostExecute(Void result) {
|
||||
pd.dismiss();
|
||||
}
|
||||
};
|
||||
task.execute((Void[])null);
|
||||
}
|
||||
|
||||
if (LinphoneActivity.isInstanciated()) {
|
||||
LinphoneActivity.instance().selectMenu(FragmentsAvailable.CHAT_LIST);
|
||||
LinphoneActivity.instance().updateChatListFragment(this);
|
||||
|
|
|
@ -163,12 +163,12 @@ public class RemoteProvisioningActivity extends Activity {
|
|||
new AlertDialog.Builder(RemoteProvisioningActivity.this)
|
||||
.setTitle(getString(R.string.remote_provisioning_again_title))
|
||||
.setMessage(getString(R.string.remote_provisioning_again_message))
|
||||
.setPositiveButton(R.string.button_ok, new DialogInterface.OnClickListener() {
|
||||
.setPositiveButton(R.string.accept, new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
setRemoteProvisioningAddressAndRestart(configUriParam);
|
||||
}
|
||||
})
|
||||
.setNegativeButton(R.string.button_cancel, new DialogInterface.OnClickListener() {
|
||||
.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
goToLinphoneActivity();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue