Earn checkbox working
This commit is contained in:
parent
61e2d5b5d6
commit
39b6ec0d35
|
|
@ -30,7 +30,7 @@ public class SettingsFragment extends Fragment {
|
|||
EditText editProfileName = root.findViewById(R.id.editProfileName);
|
||||
EditText editApiUrl = root.findViewById(R.id.editApiUrl);
|
||||
EditText editApiKey = root.findViewById(R.id.editApiKey);
|
||||
CheckBox useEarn = root.findViewById(R.id.useEarn);
|
||||
CheckBox checkUseEarn = root.findViewById(R.id.useEarn);
|
||||
EditText editEarnApiKey = root.findViewById(R.id.earnApiKey);
|
||||
CheckBox checkBox = root.findViewById(R.id.useTelegram);
|
||||
EditText editBotToken = root.findViewById(R.id.editBotToken);
|
||||
|
|
@ -39,6 +39,7 @@ public class SettingsFragment extends Fragment {
|
|||
EditText editAmountOfLogLines = root.findViewById(R.id.editAmountOfLogLines);
|
||||
EditText editAmountOfLastTrades = root.findViewById(R.id.editAmountOfLastTrades);
|
||||
|
||||
|
||||
Button buttonSaveSettings = root.findViewById(R.id.buttonSaveSettings);
|
||||
|
||||
//Load settings if settings.json exists
|
||||
|
|
@ -48,7 +49,7 @@ public class SettingsFragment extends Fragment {
|
|||
editProfileName.setText(settingsData.profileName);
|
||||
editApiUrl.setText(settingsData.apiUrl);
|
||||
editApiKey.setText(settingsData.apiKey);
|
||||
useEarn.setChecked(settingsData.useEarn);
|
||||
checkUseEarn.setChecked(settingsData.useEarn);
|
||||
editEarnApiKey.setText(settingsData.earnApiKey);
|
||||
checkBox.setChecked(settingsData.useTelegram);
|
||||
editBotToken.setText(settingsData.botToken);
|
||||
|
|
@ -76,7 +77,7 @@ public class SettingsFragment extends Fragment {
|
|||
String profileName = editProfileName.getText().toString();
|
||||
String apiUrl = editApiUrl.getText().toString();
|
||||
String apiKey = editApiKey.getText().toString();
|
||||
boolean useEarn = checkBox.isChecked();
|
||||
boolean useEarn = checkUseEarn.isChecked();
|
||||
String earnApiKey = editEarnApiKey.getText().toString();
|
||||
boolean useTelegram = checkBox.isChecked();
|
||||
String botToken = editBotToken.getText().toString();
|
||||
|
|
|
|||
Loading…
Reference in New Issue