Missing Injectable lead to half-stored account

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2019-04-16 08:45:37 +02:00
parent 02cbafe59e
commit f02f482fb5
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
3 changed files with 7 additions and 3 deletions

View file

@ -19,6 +19,7 @@
*/
package com.nextcloud.client.di;
import com.owncloud.android.authentication.ModifiedAuthenticatorActivity;
import com.owncloud.android.services.firebase.NCFirebaseInstanceIDService;
import dagger.Module;
@ -27,4 +28,5 @@ import dagger.android.ContributesAndroidInjector;
@Module
abstract class VariantComponentsModule {
@ContributesAndroidInjector abstract NCFirebaseInstanceIDService ncFirebaseInstanceIDService();
@ContributesAndroidInjector abstract ModifiedAuthenticatorActivity modifiedAuthenticatorActivity();
}

View file

@ -2,6 +2,7 @@ package com.owncloud.android.authentication;
import android.os.Bundle;
import com.nextcloud.client.di.Injectable;
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/>.
*/
public class ModifiedAuthenticatorActivity extends AuthenticatorActivity {
public class ModifiedAuthenticatorActivity extends AuthenticatorActivity implements Injectable {
@Override
protected void onCreate(Bundle savedInstanceState) {
@ -38,4 +39,4 @@ public class ModifiedAuthenticatorActivity extends AuthenticatorActivity {
GooglePlayUtils.checkPlayServices(this);
}
}
}

View file

@ -88,6 +88,7 @@ import com.blikoon.qrcodescanner.QrCodeActivity;
import com.google.android.material.snackbar.Snackbar;
import com.google.android.material.textfield.TextInputLayout;
import com.nextcloud.client.account.UserAccountManager;
import com.nextcloud.client.di.Injectable;
import com.owncloud.android.MainApp;
import com.owncloud.android.R;
import com.owncloud.android.lib.common.OwnCloudAccount;
@ -147,7 +148,7 @@ import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
*/
public class AuthenticatorActivity extends AccountAuthenticatorActivity
implements OnRemoteOperationListener, OnFocusChangeListener, OnEditorActionListener, OnSslUntrustedCertListener,
AuthenticatorAsyncTask.OnAuthenticatorTaskListener {
AuthenticatorAsyncTask.OnAuthenticatorTaskListener, Injectable {
private static final String TAG = AuthenticatorActivity.class.getSimpleName();