Skip to content

Commit 1e9aaa8

Browse files
Test1
1 parent 0571456 commit 1e9aaa8

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

selectionalertdialog/src/main/java/com/drapps/selectionalertdialog/SingleSelectionDialog.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public class SingleSelectionDialog extends AppCompatActivity {
1818

1919
Dialog dialog;
2020
private Context context;
21-
private ArrayList<String> list;
22-
private String headerTitle = "";
21+
private ArrayList<String> list;
22+
private String headerTitle = "";
2323

2424

2525
@Override
@@ -48,11 +48,8 @@ public void setTitle(String mTitle) {
4848
public void show() {
4949
//Custom pop up dialog for selecting options
5050
dialog = new Dialog(context);
51-
LayoutInflater inflater = this.getLayoutInflater();
52-
final View convertView = inflater.inflate(R.layout.single_selection_dialog, null);
51+
final View convertView = LayoutInflater.from(context).inflate(R.layout.single_selection_dialog, null);
5352
dialog.setContentView(convertView);
54-
55-
5653
dialog.show();
5754
}
5855

0 commit comments

Comments
 (0)