This repository was archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[quick_actions] Fixes Android action forwarding #1856
Merged
collinjackson
merged 5 commits into
flutter:master
from
juliocbcotta:plugin/quick_actions_fixes
Jul 16, 2019
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
43f2fee
- Fixes action forwarding by removing extra Activity.
juliocbcotta 401c749
updates CHANGELOG.md and pubspec.yaml
juliocbcotta 2464b23
Update pubspec.yaml
collinjackson 4b10af9
Update CHANGELOG.md
collinjackson 2876d8e
Update pubspec.yaml
collinjackson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,4 @@ | ||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| package="io.flutter.plugins.quickactions"> | ||
|
|
||
| <application> | ||
| <activity | ||
| android:name=".QuickActionsPlugin$ShortcutHandlerActivity" | ||
| android:exported="false" | ||
| android:relinquishTaskIdentity="true" | ||
| tools:targetApi="lollipop" /> | ||
| </application> | ||
| </manifest> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 20 additions & 15 deletions
35
packages/quick_actions/example/android/app/src/main/AndroidManifest.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,24 @@ | ||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
| package="io.flutter.plugins.quickactionsexample"> | ||
| package="io.flutter.plugins.quickactionsexample"> | ||
|
|
||
| <uses-permission android:name="android.permission.INTERNET"/> | ||
| <uses-permission android:name="android.permission.INTERNET"/> | ||
|
|
||
| <application android:name="io.flutter.app.FlutterApplication" android:label="quick_actions_example" android:icon="@mipmap/ic_launcher"> | ||
| <activity android:name=".MainActivity" | ||
| android:launchMode="singleTop" | ||
| android:theme="@android:style/Theme.Black.NoTitleBar" | ||
| android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection" | ||
| android:hardwareAccelerated="true" | ||
| android:windowSoftInputMode="adjustResize"> | ||
| <intent-filter> | ||
| <action android:name="android.intent.action.MAIN"/> | ||
| <category android:name="android.intent.category.LAUNCHER"/> | ||
| </intent-filter> | ||
| </activity> | ||
| </application> | ||
| <application android:name="io.flutter.app.FlutterApplication" | ||
| android:label="quick_actions_example" | ||
| android:icon="@mipmap/ic_launcher"> | ||
| <activity android:name=".MainActivity" | ||
| android:launchMode="singleTop" | ||
| android:theme="@style/LaunchTheme" | ||
| android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection" | ||
| android:hardwareAccelerated="true" | ||
| android:windowSoftInputMode="adjustResize"> | ||
| <meta-data | ||
| android:name="io.flutter.app.android.SplashScreenUntilFirstFrame" | ||
| android:value="true"/> | ||
| <intent-filter> | ||
| <action android:name="android.intent.action.MAIN"/> | ||
| <category android:name="android.intent.category.LAUNCHER"/> | ||
| </intent-filter> | ||
| </activity> | ||
| </application> | ||
| </manifest> |
74 changes: 74 additions & 0 deletions
74
packages/quick_actions/example/android/app/src/main/res/drawable/ic_launcher_background.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <vector | ||
| android:height="108dp" | ||
| android:width="108dp" | ||
| android:viewportHeight="108" | ||
| android:viewportWidth="108" | ||
| xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <path android:fillColor="#FF2196F3" | ||
| android:pathData="M0,0h108v108h-108z"/> | ||
| <path android:fillColor="#00000000" android:pathData="M9,0L9,108" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M19,0L19,108" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M29,0L29,108" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M39,0L39,108" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M49,0L49,108" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M59,0L59,108" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M69,0L69,108" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M79,0L79,108" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M89,0L89,108" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M99,0L99,108" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M0,9L108,9" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M0,19L108,19" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M0,29L108,29" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M0,39L108,39" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M0,49L108,49" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M0,59L108,59" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M0,69L108,69" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M0,79L108,79" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M0,89L108,89" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M0,99L108,99" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M19,29L89,29" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M19,39L89,39" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M19,49L89,49" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M19,59L89,59" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M19,69L89,69" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M19,79L89,79" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M29,19L29,89" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M39,19L39,89" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M49,19L49,89" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M59,19L59,89" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M69,19L69,89" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| <path android:fillColor="#00000000" android:pathData="M79,19L79,89" | ||
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
| </vector> |
7 changes: 7 additions & 0 deletions
7
packages/quick_actions/example/android/app/src/main/res/values/styles.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <resources> | ||
| <style | ||
| name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar"> | ||
| <item name="android:windowBackground">@drawable/ic_launcher_background</item> | ||
| </style> | ||
| </resources> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Was it completely broken on Android or only in certain situations? I'd ideally like to test this plugin more but it will require a bit more progress on our Android testing.
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.
To reproduce the problem with the current master code.