-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Waitlist for WD #2831
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
Waitlist for WD #2831
Conversation
|
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
| * Public interface to provide navigation Intents related to Windows App Settings | ||
| */ | ||
| interface WindowsSettingsNav { | ||
| fun openWindowsSettings(context: Context): Intent |
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 rename this to activityContext and even probably annotated with ActivityContext. That's the only reason you need a context here, if it was the app context you would not need it as a parameter
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.
Sounds good 👍
macos/macos-api/src/main/java/com/duckduckgo/macos_api/MacOsNav.kt
Outdated
Show resolved
Hide resolved
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:width="16dp" | ||
| android:height="16dp" | ||
| android:viewportWidth="16" | ||
| android:viewportHeight="16"> | ||
| <path | ||
| android:pathData="M7.5,1.5H1.5V7.5H7.5V1.5Z" | ||
| android:fillColor="#000000" | ||
| android:fillAlpha="0.84"/> | ||
| <path | ||
| android:pathData="M7.5,8.5H1.5V14.5H7.5V8.5Z" | ||
| android:fillColor="#000000" | ||
| android:fillAlpha="0.84"/> | ||
| <path | ||
| android:pathData="M8.5,1.5H14.5V7.5H8.5V1.5Z" | ||
| android:fillColor="#000000" | ||
| android:fillAlpha="0.84"/> | ||
| <path | ||
| android:pathData="M14.5,8.5H8.5V14.5H14.5V8.5Z" | ||
| android:fillColor="#000000" | ||
| android:fillAlpha="0.84"/> | ||
| </vector> |
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 before, you need to replace fillColor attribute with ?attr/daxColorPrimaryIcon and remove alpha in all <paths/>
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.
thanks for the check @nalcalag 👍
3ec563c to
38b46a9
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 except that PendingIntent crash
| putExtra(Intent.EXTRA_TITLE, getString(R.string.windows_waitlist_share_invite)) | ||
| } | ||
|
|
||
| val pi = PendingIntent.getBroadcast( |
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 is making the app crash with
java.lang.IllegalArgumentException: com.duckduckgo.mobile.android.debug: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
In reality that pi variable is not used so you can delete and this should work again.
| private fun executeCommand(command: Command) { | ||
| when (command) { | ||
| is ShareLink -> launchSharePageChooser() | ||
| GoToWindowsClientSettings -> launchWindowsClientSettings() |
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.
is this missing an is ?
| --> | ||
|
|
||
| <resources> | ||
| <string name="macos_app">DuckDuckGo Desktop App</string> |
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.
Just as a reminder when we get the translations would be good to translate these strings as well.
| } | ||
| } | ||
|
|
||
| fun onDialogDismissed() { |
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 function is not used anywhere so we can delete it.
0dfc124 to
2b866fe
Compare
| setSpan( | ||
| ForegroundColorSpan( | ||
| ContextCompat.getColor(context, R.color.cornflowerBlue), | ||
| context.getColorFromAttr(R.attr.daxColorAccentBlue), |
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.
updated spannable links colors (reported by sveta, discussed with @malmstein )
<!--
Note: This checklist is a reminder of our shared engineering
expectations.
The items in Bold are required
If your PR involves UI changes:
1. Upload screenshots or screencasts that illustrate the changes before
/ after
2. Add them under the UI changes section (feel free to add more columns
if needed)
3. Make sure these changes are tested in API 23 and API 26
If your PR does not involve UI changes, you can remove the **UI
changes** section
-->
Task/Issue URL:
https://app.asana.com/0/488551667048375/1203975081655927/f
### Description
Adds notify me component to waitlist
### Steps to test this PR
_Feature 1_
- [ ] fresh install
- [ ] go to settings waitlist
- [ ] join the waitlist
- [ ] if notifications enabled, notifyme component shouldn't appear. If
disabled, ensure it appears.
### UI changes
| Before | After |
| ------ | ----- |
!(Upload before screenshot)|(Upload after screenshot)|
Task/Issue URL: https://app.asana.com/0/0/1202843599939263/f ### Description Adds a new waitlist in settings. Similar to the one we had for macOS. ### Steps to test this PR Follow instructions in https://app.asana.com/0/0/1203975737540623/f ### UI changes | Before | After | | ------ | ----- | !(Upload before screenshot)|(Upload after screenshot)| Co-authored-by: Marcos <marcosh@duckduckgo.com>

Task/Issue URL: https://app.asana.com/0/0/1202843599939263/f
Description
Adds a new waitlist in settings. Similar to the one we had for macOS.
Steps to test this PR
Follow instructions in https://app.asana.com/0/0/1203975737540623/f
UI changes