mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 06:05:42 +03:00
Merge remote-tracking branch 'origin/operations_service' into operations_service
This commit is contained in:
commit
c1df34b5e3
9 changed files with 470 additions and 592 deletions
|
@ -67,7 +67,7 @@
|
|||
android:text="@string/auth_check_server"
|
||||
android:visibility="gone" />
|
||||
<TextView
|
||||
android:id="@+id/auth_message"
|
||||
android:id="@+id/instructions_message"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="fill_horizontal"
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
android:visibility="gone" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/auth_message"
|
||||
android:id="@+id/instructions_message"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="fill_horizontal"
|
||||
|
|
|
@ -110,6 +110,7 @@
|
|||
<string name="foreign_files_remote_text">"Remote: %1$s"</string>
|
||||
<string name="upload_query_move_foreign_files">There is not space enough to copy the selected files into the %1$s folder. Would like to move them into instead? </string>
|
||||
<string name="pincode_enter_pin_code">Please, insert your App PIN</string>
|
||||
|
||||
<string name="pincode_configure_your_pin">Enter your App PIN</string>
|
||||
<string name="pincode_configure_your_pin_explanation">The PIN will be requested every time the app is started</string>
|
||||
<string name="pincode_reenter_your_pincode">Please, reenter your App PIN</string>
|
||||
|
@ -139,6 +140,7 @@
|
|||
<string name="media_play_pause_description">Play or pause button</string>
|
||||
<string name="media_forward_description">Fast forward button</string>
|
||||
|
||||
<string name="auth_getting_authorization">Getting authorization…</string>
|
||||
<string name="auth_trying_to_login">Trying to login…</string>
|
||||
<string name="auth_no_net_conn_title">No network connection</string>
|
||||
<string name="auth_nossl_plain_ok_title">Secure connection unavailable.</string>
|
||||
|
|
|
@ -195,8 +195,7 @@ public class AccountAuthenticator extends AbstractAccountAuthenticator {
|
|||
intent.putExtra(KEY_AUTH_TOKEN_TYPE, authTokenType);
|
||||
intent.putExtra(KEY_LOGIN_OPTIONS, options);
|
||||
intent.putExtra(AuthenticatorActivity.EXTRA_ACCOUNT, account);
|
||||
intent.putExtra(AuthenticatorActivity.EXTRA_ENFORCED_UPDATE, true);
|
||||
intent.putExtra(AuthenticatorActivity.EXTRA_ACTION, AuthenticatorActivity.ACTION_UPDATE_TOKEN);
|
||||
intent.putExtra(AuthenticatorActivity.EXTRA_ACTION, AuthenticatorActivity.ACTION_UPDATE_EXPIRED_TOKEN);
|
||||
|
||||
|
||||
final Bundle bundle = new Bundle();
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -478,8 +478,7 @@ public class FileDownloader extends Service implements OnDatatransferProgressLis
|
|||
// let the user update credentials with one click
|
||||
Intent updateAccountCredentials = new Intent(this, AuthenticatorActivity.class);
|
||||
updateAccountCredentials.putExtra(AuthenticatorActivity.EXTRA_ACCOUNT, download.getAccount());
|
||||
updateAccountCredentials.putExtra(AuthenticatorActivity.EXTRA_ENFORCED_UPDATE, true);
|
||||
updateAccountCredentials.putExtra(AuthenticatorActivity.EXTRA_ACTION, AuthenticatorActivity.ACTION_UPDATE_TOKEN);
|
||||
updateAccountCredentials.putExtra(AuthenticatorActivity.EXTRA_ACTION, AuthenticatorActivity.ACTION_UPDATE_EXPIRED_TOKEN);
|
||||
updateAccountCredentials.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
updateAccountCredentials.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
|
||||
updateAccountCredentials.addFlags(Intent.FLAG_FROM_BACKGROUND);
|
||||
|
|
|
@ -785,8 +785,7 @@ public class FileUploader extends Service implements OnDatatransferProgressListe
|
|||
// let the user update credentials with one click
|
||||
Intent updateAccountCredentials = new Intent(this, AuthenticatorActivity.class);
|
||||
updateAccountCredentials.putExtra(AuthenticatorActivity.EXTRA_ACCOUNT, upload.getAccount());
|
||||
updateAccountCredentials.putExtra(AuthenticatorActivity.EXTRA_ENFORCED_UPDATE, true);
|
||||
updateAccountCredentials.putExtra(AuthenticatorActivity.EXTRA_ACTION, AuthenticatorActivity.ACTION_UPDATE_TOKEN);
|
||||
updateAccountCredentials.putExtra(AuthenticatorActivity.EXTRA_ACTION, AuthenticatorActivity.ACTION_UPDATE_EXPIRED_TOKEN);
|
||||
updateAccountCredentials.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
updateAccountCredentials.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
|
||||
updateAccountCredentials.addFlags(Intent.FLAG_FROM_BACKGROUND);
|
||||
|
|
|
@ -93,8 +93,8 @@ public class GetServerInfoOperation extends RemoteOperation {
|
|||
if (result.isSuccess()) {
|
||||
// second: get authentication method required by the server
|
||||
mResultData.mVersion = (OwnCloudVersion)(result.getData().get(0));
|
||||
boolean isSslConn = (result.getCode() == ResultCode.OK_SSL);
|
||||
mResultData.mBaseUrl = normalizeProtocolPrefix(mUrl, isSslConn);
|
||||
mResultData.mIsSslConn = (result.getCode() == ResultCode.OK_SSL);
|
||||
mResultData.mBaseUrl = normalizeProtocolPrefix(mUrl, mResultData.mIsSslConn);
|
||||
RemoteOperationResult detectAuthResult = detectAuthorizationMethod(client);
|
||||
|
||||
// third: merge results
|
||||
|
@ -155,9 +155,10 @@ public class GetServerInfoOperation extends RemoteOperation {
|
|||
|
||||
|
||||
public static class ServerInfo {
|
||||
public OwnCloudVersion mVersion;
|
||||
public String mBaseUrl;
|
||||
public AuthenticationMethod mAuthMethod;
|
||||
public OwnCloudVersion mVersion = null;
|
||||
public String mBaseUrl = "";
|
||||
public AuthenticationMethod mAuthMethod = AuthenticationMethod.UNKNOWN;
|
||||
public boolean mIsSslConn = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -397,8 +397,7 @@ public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter {
|
|||
// let the user update credentials with one click
|
||||
Intent updateAccountCredentials = new Intent(getContext(), AuthenticatorActivity.class);
|
||||
updateAccountCredentials.putExtra(AuthenticatorActivity.EXTRA_ACCOUNT, getAccount());
|
||||
updateAccountCredentials.putExtra(AuthenticatorActivity.EXTRA_ENFORCED_UPDATE, true);
|
||||
updateAccountCredentials.putExtra(AuthenticatorActivity.EXTRA_ACTION, AuthenticatorActivity.ACTION_UPDATE_TOKEN);
|
||||
updateAccountCredentials.putExtra(AuthenticatorActivity.EXTRA_ACTION, AuthenticatorActivity.ACTION_UPDATE_EXPIRED_TOKEN);
|
||||
updateAccountCredentials.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
updateAccountCredentials.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
|
||||
updateAccountCredentials.addFlags(Intent.FLAG_FROM_BACKGROUND);
|
||||
|
|
Loading…
Reference in a new issue