File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
selectionalertdialog/src/main/java/com/drapps/selectionalertdialog Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments