-
Notifications
You must be signed in to change notification settings - Fork 893
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
Android 13 show Warning modal condition update #16128
Android 13 show Warning modal condition update #16128
Conversation
93eeff4
to
b5574ae
Compare
214d312
to
b6c5161
Compare
|
b6c5161
to
1a27a1a
Compare
private void showNotificationWarningDialog() { | ||
BraveNotificationWarningDialog notificationWarningDialog = | ||
BraveNotificationWarningDialog.newInstance( | ||
BraveNotificationWarningDialog.FROM_LAUNCHED_BRAVE_ACTIVITY); | ||
notificationWarningDialog.setCancelable(false); |
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.
what was the reason to remove it ?
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.
Removed this line, because back key was not working.
If we want to force user to click on close( X mark) then we can have this line.
I feel user this dialog can close if click outside / press on back key.
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.
my suggestion would be to disable dismiss on outside click. as we are showing close button on the UI
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.
reverted this.
Added back that line
notificationWarningDialog.setCancelable(false);
@@ -117,11 +138,11 @@ private void init(View view) { | |||
clickOnNotNow(view); | |||
} | |||
|
|||
public boolean isBraveRewardsEnabled() { | |||
return OnboardingPrefManager.getInstance().isBraveAdsEnabled(); | |||
public static boolean isBraveRewardsEnabled() { |
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.
are we sure to check this function after native initialization ?
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.
This flow actually starts from BraveActivity::finishNativeInitialization
It's sure that we are calling after native initialization.
1a27a1a
to
3174fa0
Compare
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.
LGTM
79266a8
to
b29c030
Compare
Please only add the milestone once the issue has been resolved/merged into |
b29c030
to
c0681cd
Compare
While running through the above, found the following issues:
|
Resolves brave/brave-browser#27032
Resolves brave/brave-browser#27004
Resolves brave/brave-browser#27108
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
1. Application re-launch 3rd time
2. From Brave setting -> notification click each time