mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 13:15:35 +03:00
Missing Injectable lead to half-stored account
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
02cbafe59e
commit
f02f482fb5
3 changed files with 7 additions and 3 deletions
|
@ -19,6 +19,7 @@
|
||||||
*/
|
*/
|
||||||
package com.nextcloud.client.di;
|
package com.nextcloud.client.di;
|
||||||
|
|
||||||
|
import com.owncloud.android.authentication.ModifiedAuthenticatorActivity;
|
||||||
import com.owncloud.android.services.firebase.NCFirebaseInstanceIDService;
|
import com.owncloud.android.services.firebase.NCFirebaseInstanceIDService;
|
||||||
|
|
||||||
import dagger.Module;
|
import dagger.Module;
|
||||||
|
@ -27,4 +28,5 @@ import dagger.android.ContributesAndroidInjector;
|
||||||
@Module
|
@Module
|
||||||
abstract class VariantComponentsModule {
|
abstract class VariantComponentsModule {
|
||||||
@ContributesAndroidInjector abstract NCFirebaseInstanceIDService ncFirebaseInstanceIDService();
|
@ContributesAndroidInjector abstract NCFirebaseInstanceIDService ncFirebaseInstanceIDService();
|
||||||
|
@ContributesAndroidInjector abstract ModifiedAuthenticatorActivity modifiedAuthenticatorActivity();
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.owncloud.android.authentication;
|
||||||
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
|
||||||
|
import com.nextcloud.client.di.Injectable;
|
||||||
import com.owncloud.android.utils.GooglePlayUtils;
|
import com.owncloud.android.utils.GooglePlayUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -24,7 +25,7 @@ import com.owncloud.android.utils.GooglePlayUtils;
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class ModifiedAuthenticatorActivity extends AuthenticatorActivity {
|
public class ModifiedAuthenticatorActivity extends AuthenticatorActivity implements Injectable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
@ -38,4 +39,4 @@ public class ModifiedAuthenticatorActivity extends AuthenticatorActivity {
|
||||||
GooglePlayUtils.checkPlayServices(this);
|
GooglePlayUtils.checkPlayServices(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,6 +88,7 @@ import com.blikoon.qrcodescanner.QrCodeActivity;
|
||||||
import com.google.android.material.snackbar.Snackbar;
|
import com.google.android.material.snackbar.Snackbar;
|
||||||
import com.google.android.material.textfield.TextInputLayout;
|
import com.google.android.material.textfield.TextInputLayout;
|
||||||
import com.nextcloud.client.account.UserAccountManager;
|
import com.nextcloud.client.account.UserAccountManager;
|
||||||
|
import com.nextcloud.client.di.Injectable;
|
||||||
import com.owncloud.android.MainApp;
|
import com.owncloud.android.MainApp;
|
||||||
import com.owncloud.android.R;
|
import com.owncloud.android.R;
|
||||||
import com.owncloud.android.lib.common.OwnCloudAccount;
|
import com.owncloud.android.lib.common.OwnCloudAccount;
|
||||||
|
@ -147,7 +148,7 @@ import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||||
*/
|
*/
|
||||||
public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
||||||
implements OnRemoteOperationListener, OnFocusChangeListener, OnEditorActionListener, OnSslUntrustedCertListener,
|
implements OnRemoteOperationListener, OnFocusChangeListener, OnEditorActionListener, OnSslUntrustedCertListener,
|
||||||
AuthenticatorAsyncTask.OnAuthenticatorTaskListener {
|
AuthenticatorAsyncTask.OnAuthenticatorTaskListener, Injectable {
|
||||||
|
|
||||||
private static final String TAG = AuthenticatorActivity.class.getSimpleName();
|
private static final String TAG = AuthenticatorActivity.class.getSimpleName();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue