CopyPastor

Detecting plagiarism made easy.

Score: 0.8376693217985092; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2018-12-20
by Rubin bhandari

Original Post

Original - Posted on 2018-09-17
by Cristian Chávez



            
Present in both answers; Present only in the new answer; Present only in the old answer;

In your fragment Fragment add :
@Override public void onResume() { super.onResume(); getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); } @Override public void onPause() { getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); super.onPause(); }
onPause method code ensure your activity back to portrait orientation
In your fragment FragA :
@Override public void onResume() { super.onResume(); getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
}

@Override public void onPause() { getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); super.onPause(); }
**onPause** method code ensure your activity back to portrait orientation

        
Present in both answers; Present only in the new answer; Present only in the old answer;