Skip to content

Commit

Permalink
WIP How can I call to FlutterActivity from PlatformPlugin? Seems like…
Browse files Browse the repository at this point in the history
… FA owns the PP. PP has an instance, but its just a plain Activity?
  • Loading branch information
justinmc committed Feb 1, 2023
1 parent 9c0e7cc commit 6dd0953
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import android.view.Window;
import android.view.WindowManager;
import android.window.OnBackInvokedCallback;
import android.window.OnBackInvokedDispatcher;
//import android.window.OnBackInvokedDispatcher;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
Expand Down Expand Up @@ -666,11 +666,14 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
public void registerOnBackInvokedCallback() {
if (Build.VERSION.SDK_INT >= 33) {
// TODO(justinmc): This is really the one and only thing that stops root
// pback for me.
// pback for me. There are probably other places you need to mess with
// this for other embedding strategies!
Log.e("justin", "registerOnBackInvokedCallback");
/*
getOnBackInvokedDispatcher()
.registerOnBackInvokedCallback(
OnBackInvokedDispatcher.PRIORITY_DEFAULT, onBackInvokedCallback);
*/
}
}

Expand Down

0 comments on commit 6dd0953

Please sign in to comment.