Skip to content

Commit

Permalink
Replaced Toast with SnackBar for username changed event.
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-alexander committed Aug 29, 2019
1 parent 62c2f08 commit acf156e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import org.wordpress.android.util.NetworkUtils;
import org.wordpress.android.util.SiteUtils;
import org.wordpress.android.util.ToastUtils;
import org.wordpress.android.widgets.WPSnackbar;

import java.util.ArrayList;
import java.util.HashMap;
Expand Down Expand Up @@ -372,10 +373,9 @@ private void showUsernameChangerFragment() {
String username = result.getString(BaseUsernameChangerFullScreenDialogFragment.RESULT_USERNAME);

if (username != null) {
ToastUtils.showToast(getActivity(),
WPSnackbar.make(getView(),
String.format(getString(R.string.settings_username_changer_toast_content), username),
ToastUtils.Duration.LONG);

Snackbar.LENGTH_LONG).show();
mUsernamePreference.setSummary(username);
}
}
Expand Down

0 comments on commit acf156e

Please sign in to comment.