Skip to content

Commit

Permalink
fix: prevent crashes on Android when an Activity is restarted
Browse files Browse the repository at this point in the history
Closes #302
  • Loading branch information
lpezzolla committed Oct 11, 2023
1 parent df46b45 commit 751ef8f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
package it.polito.students;

import android.os.Bundle;
import com.facebook.react.ReactActivity;
import com.facebook.react.ReactActivityDelegate;
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
import com.facebook.react.defaults.DefaultReactActivityDelegate;

public class MainActivity extends ReactActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(null);
}

// @Override
// public void onConfigurationChanged(Configuration newConfig) {
// super.onConfigurationChanged(newConfig);
Expand Down

0 comments on commit 751ef8f

Please sign in to comment.