-
Notifications
You must be signed in to change notification settings - Fork 871
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
New tipping banner UI brave-browser/issues/17070 #14967
Conversation
4d3e848
to
c4ea939
Compare
android/java/org/chromium/chrome/browser/rewards/BraveRewardsBannerInfo.java
Show resolved
Hide resolved
android/java/org/chromium/chrome/browser/rewards/BraveRewardsCreatorPanelFragment.java
Outdated
Show resolved
Hide resolved
android/java/org/chromium/chrome/browser/rewards/BraveRewardsCreatorPanelFragment.java
Outdated
Show resolved
Hide resolved
android/java/org/chromium/chrome/browser/rewards/BraveRewardsCreatorPanelFragment.java
Outdated
Show resolved
Hide resolved
android/java/org/chromium/chrome/browser/rewards/BraveRewardsCustomTipFragment.java
Outdated
Show resolved
Hide resolved
android/java/org/chromium/chrome/browser/rewards/BraveRewardsPanel.java
Outdated
Show resolved
Hide resolved
android/java/org/chromium/chrome/browser/rewards/BraveRewardsBannerInfo.java
Outdated
Show resolved
Hide resolved
public static final String DESCRIPTION = "description"; | ||
public static final String BACKGROUND = "background"; | ||
public static final String LOGO = "logo"; | ||
// public static final String AMOUNTS = "amounts"; |
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.
Why is this commented, will we need it going forward?
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
8ea7cbb
to
e0c487b
Compare
e0c487b
to
3213870
Compare
browser/ui/android/strings/translations/android_brave_strings_en-GB.xtb
Outdated
Show resolved
Hide resolved
android/java/org/chromium/chrome/browser/BraveRewardsSiteBannerActivity.java
Show resolved
Hide resolved
android/java/org/chromium/chrome/browser/rewards/BraveRewardsTipConfirmationFragment.java
Show resolved
Hide resolved
Log.e("BraveRewards", | ||
"User is verified and publisher is verified but not with the same provider"); |
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.
If this is not common case (happens rarely) I would probably keep it as it won't clutter the log, but may help with debugging this issue.
What I would do though is replace BraveRewards
with TAG
variable for code consistency with Chromium and less likely to make a typo in tag and have problems with filtering it in the LogCat.
android/java/org/chromium/chrome/browser/rewards/BraveRewardsCreatorPanelFragment.java
Show resolved
Hide resolved
new BraveRewardsExternalWallet(externalWallet); | ||
walletStatus = mExternalWallet.getStatus(); | ||
} catch (JSONException e) { | ||
Log.e("BraveRewards", e.getMessage()); |
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.
I would also add assert, it will be easier to catch it
android/java/org/chromium/chrome/browser/BraveRewardsSiteBannerActivity.java
Outdated
Show resolved
Hide resolved
android/java/org/chromium/chrome/browser/BraveRewardsSiteBannerActivity.java
Outdated
Show resolved
Hide resolved
android/java/org/chromium/chrome/browser/rewards/BraveRewardsCustomTipFragment.java
Outdated
Show resolved
Hide resolved
android/java/org/chromium/chrome/browser/rewards/BraveRewardsCustomTipFragment.java
Outdated
Show resolved
Hide resolved
…ave/brave-core into Fix_for_17070_Tipping_banner1
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
android/java/org/chromium/chrome/browser/rewards/BraveRewardsCreatorPanelFragment.java
Show resolved
Hide resolved
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.
++
@@ -0,0 +1,5 @@ | |||
package org.chromium.chrome.browser.rewards; |
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.
We would need copyright section here.
`/** Copyright (c) 2022 The Brave Authors. All rights reserved.
- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this file,
- You can obtain one at http://mozilla.org/MPL/2.0/.
*/`
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 extra file deleted
|
||
package org.chromium.chrome.browser.rewards; | ||
|
||
public interface BraveRewardsAmountChangeListener { |
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.
why do we have BraveRewardsAmountChangeListener
at two different places ?
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 extra file deleted
android:fontFamily="@font/poppins_medium" | ||
android:text="@string/thanks_for_support" | ||
android:textStyle="bold" | ||
android:textColor="#212529" |
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.
we should avoid using hard coded color codes. i think we have this color code for text for other parts
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 all hard coded color code
android:layout_marginStart="84dp" | ||
android:layout_marginTop="9.85dp" | ||
android:layout_marginEnd="84dp" | ||
android:background="#80AEB1C2" |
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.
same as other comment
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 all hard coded color code
android:background="@android:color/white" | ||
android:paddingTop="8dp" | ||
> | ||
|
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.
nit: extra space
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
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
Resolves brave/brave-browser#17070
Resolves brave/brave-browser#16021
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: