Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
review feedback
  • Loading branch information
Gray Mackall committed Dec 3, 2024
commit 7d04aedaaa3d020f279ec378ab0bddc6b2cda6ec
Original file line number Diff line number Diff line change
Expand Up @@ -634,10 +634,9 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

if (savedInstanceState != null
&& savedInstanceState.getBoolean(
FlutterActivityAndFragmentDelegate.ON_BACK_CALLBACK_ENABLED_KEY)) {
setFrameworkHandlesBack(true);
if (savedInstanceState != null) {
boolean frameworkHandlesBack = savedInstanceState.getBoolean(FlutterActivityAndFragmentDelegate.ON_BACK_CALLBACK_ENABLED_KEY);
setFrameworkHandlesBack(frameworkHandlesBack);
}

delegate = new FlutterActivityAndFragmentDelegate(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1072,10 +1072,9 @@ public void onAttach(@NonNull Context context) {
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (savedInstanceState != null
&& savedInstanceState.getBoolean(
FlutterActivityAndFragmentDelegate.ON_BACK_CALLBACK_ENABLED_KEY)) {
onBackPressedCallback.setEnabled(true);
if (savedInstanceState != null) {
boolean frameworkHandlesBack = savedInstanceState.getBoolean(FlutterActivityAndFragmentDelegate.ON_BACK_CALLBACK_ENABLED_KEY);
onBackPressedCallback.setEnabled(frameworkHandlesBack);
}
delegate.onRestoreInstanceState(savedInstanceState);
}
Expand Down