-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Async promo dialog #6467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Async promo dialog #6467
Conversation
import org.wordpress.android.ui.accounts.login.Login2FaFragment; | ||
import org.wordpress.android.ui.accounts.login.LoginEmailFragment; | ||
import org.wordpress.android.ui.accounts.login.LoginEmailPasswordFragment; | ||
import org.wordpress.android.ui.accounts.login.LoginEpilogueFragment; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice name
void inject(ReaderPostPagerActivity object); | ||
|
||
void inject(EditorReleaseNotesActivity object); | ||
void inject(ReleaseNotesActivity object); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice reuse
resizePhotoPicker(); | ||
} | ||
|
||
// If we're showing the Async promo dialog, we need to redraw it so it takes into account |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure what the comment meant, it should continue but ends abruptly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woops! Fixed in 0a81c29.
*/ | ||
public class PromoDialogAdvanced extends PromoDialog { | ||
public static class Builder extends PromoDialog.Builder { | ||
@StringRes int linkId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we make these linkResId
, buttonNegativeResId
, descriptionResId
etc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in f4e7063.
Adds a promo dialog, shown the first time a user presses the 'Publish' button:
Note: For now, the 'How does it work?' text is hidden. Closer (or just after) the beta we'll put up a post on mobile make, link to that, and unhide the link text.
I also added a new
PromoDialogAdvanced
, intended for reuse for any dialogs requiring a link or negative button field (the existingPromoDialogEditor
now extends this one, adding an extra title field for 'Beta'). The pre-existingPromoDialog
can be used for simple (image, title, description, positive button) promos.Also some design changes:
cc @iamthomasbishop (no visual changes to the async promo since we last spoke)