Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into jan-milovanovic-minor
  • Loading branch information
ryanheise committed Jul 11, 2024
2 parents e3abd9b + 98bb8ed commit edba3e5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions audio_service/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.18.15

* Add deep link support for FlutterFragmentActivity (@jan-milovanovic)

## 0.18.14

* Support rxdart 0.28.x.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import java.util.concurrent.Executors;

import io.flutter.embedding.android.FlutterActivity;
import io.flutter.embedding.android.FlutterFragmentActivity;
import io.flutter.embedding.engine.plugins.FlutterPlugin;
import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding;
import io.flutter.embedding.engine.plugins.activity.ActivityAware;
Expand Down Expand Up @@ -87,6 +88,15 @@ public static synchronized FlutterEngine getFlutterEngine(Context context) {
}
}
}
} else if (context instanceof FlutterFragmentActivity) {
final FlutterFragmentActivity activity = (FlutterFragmentActivity)context;
Uri data = activity.getIntent().getData();
if (data != null) {
initialRoute = data.getPath();
if (data.getQuery() != null && !data.getQuery().isEmpty()) {
initialRoute += "?" + data.getQuery();
}
}
}
if (initialRoute == null) {
initialRoute = "/";
Expand Down

0 comments on commit edba3e5

Please sign in to comment.