CopyPastor

Detecting plagiarism made easy.

Score: 1.769226610660553; Reported for: String similarity, Exact paragraph match Open both answers

Possible Plagiarism

Reposted on 2016-11-02
by Ganesh Pokale

Original Post

Original - Posted on 2016-11-02
by Ganesh Pokale



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

Try this code
Dialog dialog; public void openDialog() { dialog = new Dialog(this); // Context, this, etc. dialog.setContentView(R.layout.dialog_demo); dialog.setTitle(R.string.dialog_title); dialog.show(); } public void cancelDialog() { dialog.dismiss(); }
You are passing Button View to `cancelDialog(View)` instead of `cancelDialog(Dialog v)`
this may be like this
Dialog dialog; public void openDialog() { dialog = new Dialog(this); // Context, this, etc. dialog.setContentView(R.layout.dialog_demo); dialog.setTitle(R.string.dialog_title); dialog.show(); }
public void cancelDialog() { dialog.dismiss(); }

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