Revert "Workaround bug in fragment activity"

This reverts commit 95d101c9f2.
pull/146/head
M66B 6 years ago
parent dbc3b0703a
commit 475833ab6f

@ -27,7 +27,6 @@ import android.view.MenuItem;
import java.util.ArrayList;
import androidx.annotation.Nullable;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;
import androidx.lifecycle.Lifecycle;
@ -140,14 +139,4 @@ public class ActivityCompose extends ActivityBilling implements FragmentManager.
return false;
}
}
@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
if (resultCode == RESULT_CANCELED) {
int request = requestCode & 0xffff;
if (request == REQUEST_IMAGE || request == REQUEST_ATTACHMENT)
return;
}
super.onActivityResult(requestCode, resultCode, data);
}
}

@ -28,7 +28,6 @@ import android.view.MenuItem;
import java.util.List;
import androidx.annotation.Nullable;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;
import androidx.lifecycle.Lifecycle;
@ -107,16 +106,6 @@ public class ActivitySetup extends ActivityBilling implements FragmentManager.On
}
}
@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
if (resultCode == RESULT_CANCELED) {
int request = requestCode & 0xffff;
if (request == REQUEST_EXPORT || request == REQUEST_IMPORT)
return;
}
super.onActivityResult(requestCode, resultCode, data);
}
BroadcastReceiver receiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {

Loading…
Cancel
Save