Skip to content

Commit 1f04e3c

Browse files
Remove static from functions
1 parent 3633274 commit 1f04e3c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class SingleSelectionDialog extends AppCompatActivity {
1919
Dialog dialog;
2020
private static Context context;
2121
private static ArrayList<String> list;
22-
private static String title = "";
22+
private static String headerTitle = "";
2323

2424

2525
@Override
@@ -28,19 +28,19 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
2828
setContentView(R.layout.single_selection_dialog);
2929
}
3030

31-
public static void with(Context mContext) {
31+
public void with(Context mContext) {
3232
context = mContext;
3333
}
3434

35-
public static void create(ArrayList<String> dataList) {
35+
public void create(ArrayList<String> dataList) {
3636
list = dataList;
3737
}
3838

39-
public static void setTitle(String mTitle) {
39+
public void setTitle(String mTitle) {
4040
if (mTitle != null && !mTitle.equals("")) {
41-
title = mTitle;
41+
headerTitle = mTitle;
4242
} else {
43-
title = "Select";
43+
headerTitle = "Select";
4444
}
4545
}
4646

0 commit comments

Comments
 (0)