Skip to content

Commit

Permalink
Update inner import checkstyle violations in login library
Browse files Browse the repository at this point in the history
  • Loading branch information
aforcier committed Apr 17, 2018
1 parent d07401c commit 9af7502
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;
import org.wordpress.android.fluxc.generated.AccountActionBuilder;
import org.wordpress.android.fluxc.store.AccountStore;
import org.wordpress.android.fluxc.store.AccountStore.OnAuthenticationChanged;
import org.wordpress.android.fluxc.store.AccountStore.OnSocialChanged;
import org.wordpress.android.fluxc.store.AccountStore.PushSocialPayload;
import org.wordpress.android.login.util.SiteUtils;
import org.wordpress.android.util.AppLog;
Expand Down Expand Up @@ -161,7 +162,7 @@ private String removeScaleFromGooglePhotoUrl(String photoUrl) {

@SuppressWarnings("unused")
@Subscribe(threadMode = ThreadMode.MAIN)
public void onAuthenticationChanged(AccountStore.OnAuthenticationChanged event) {
public void onAuthenticationChanged(OnAuthenticationChanged event) {
if (event.isError()) {
AppLog.e(T.API,
"SignupGoogleFragment.onAuthenticationChanged: " + event.error.type + " - " + event.error.message);
Expand All @@ -178,7 +179,7 @@ public void onAuthenticationChanged(AccountStore.OnAuthenticationChanged event)

@SuppressWarnings("unused")
@Subscribe(threadMode = ThreadMode.MAIN)
public void onSocialChanged(AccountStore.OnSocialChanged event) {
public void onSocialChanged(OnSocialChanged event) {
if (event.isError()) {
AppLog.e(T.API, "SignupGoogleFragment.onSocialChanged: " + event.error.type + " - " + event.error.message);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
import org.greenrobot.eventbus.ThreadMode;
import org.wordpress.android.fluxc.Dispatcher;
import org.wordpress.android.fluxc.generated.AuthenticationActionBuilder;
import org.wordpress.android.fluxc.store.AccountStore;
import org.wordpress.android.fluxc.store.AccountStore.AuthEmailPayload;
import org.wordpress.android.fluxc.store.AccountStore.OnAuthEmailSent;
import org.wordpress.android.util.AppLog;
import org.wordpress.android.util.AppLog.T;
import org.wordpress.android.util.NetworkUtils;
Expand Down Expand Up @@ -179,7 +180,7 @@ protected void endProgress() {
protected void sendMagicLinkEmail() {
if (NetworkUtils.checkConnection(getActivity())) {
startProgress(getString(R.string.signup_magic_link_progress));
AccountStore.AuthEmailPayload authEmailPayload = new AccountStore.AuthEmailPayload(mEmail, true);
AuthEmailPayload authEmailPayload = new AuthEmailPayload(mEmail, true);
mDispatcher.dispatch(AuthenticationActionBuilder.newSendAuthEmailAction(authEmailPayload));
}
}
Expand Down Expand Up @@ -207,7 +208,7 @@ public void onClick(DialogInterface dialog, int which) {

@SuppressWarnings("unused")
@Subscribe(threadMode = ThreadMode.MAIN)
public void onAuthEmailSent(AccountStore.OnAuthEmailSent event) {
public void onAuthEmailSent(OnAuthEmailSent event) {
if (mInProgress) {
endProgress();

Expand Down

0 comments on commit 9af7502

Please sign in to comment.