Android:Fix cannot receive onActivityForResult by DoricPanelFrgment
This commit is contained in:
parent
f4e6042cae
commit
0363e5d207
@ -15,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
package pub.doric;
|
package pub.doric;
|
||||||
|
|
||||||
|
import android.content.Intent;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@ -94,4 +95,15 @@ public class DoricFragment extends Fragment {
|
|||||||
view.setId(R.id.doric_mask_error);
|
view.setId(R.id.doric_mask_error);
|
||||||
this.errorView = view;
|
this.errorView = view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
|
||||||
|
super.onActivityResult(requestCode, resultCode, data);
|
||||||
|
for (Fragment fragment : getChildFragmentManager().getFragments()) {
|
||||||
|
fragment.onActivityResult(requestCode, resultCode, data);
|
||||||
|
for (Fragment childFragment : fragment.getChildFragmentManager().getFragments()) {
|
||||||
|
childFragment.onActivityResult(requestCode, resultCode, data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user