ComboFragment: rename Update Button to Refresh.
This commit is contained in:
parent
5fad9b3a85
commit
6faa1614ac
|
@ -30,7 +30,7 @@ public class ComboFragment extends Fragment implements View.OnClickListener {
|
|||
return comboPlugin;
|
||||
}
|
||||
|
||||
private Button update;
|
||||
private Button refresh;
|
||||
private TextView status;
|
||||
private TextView tbrPercentage;
|
||||
private TextView tbrDurationRemaining;
|
||||
|
@ -43,7 +43,7 @@ public class ComboFragment extends Fragment implements View.OnClickListener {
|
|||
Bundle savedInstanceState) {
|
||||
View view = inflater.inflate(R.layout.combopump_fragment, container, false);
|
||||
|
||||
update = (Button) view.findViewById(R.id.combo_update);
|
||||
refresh = (Button) view.findViewById(R.id.combo_refresh);
|
||||
status = (TextView) view.findViewById(R.id.combo_status);
|
||||
tbrPercentage = (TextView) view.findViewById(R.id.combo_tbr_percentage);
|
||||
tbrDurationRemaining = (TextView) view.findViewById(R.id.combo_tbr_duration_remaining);
|
||||
|
@ -51,7 +51,7 @@ public class ComboFragment extends Fragment implements View.OnClickListener {
|
|||
errorMsg = (TextView) view.findViewById(R.id.combo_error_message);
|
||||
lastUpdate = (TextView) view.findViewById(R.id.combo_last_update);
|
||||
|
||||
update.setOnClickListener(this);
|
||||
refresh.setOnClickListener(this);
|
||||
status.setText("Initializing");
|
||||
|
||||
updateGUI();
|
||||
|
@ -79,8 +79,8 @@ public class ComboFragment extends Fragment implements View.OnClickListener {
|
|||
@Override
|
||||
public void onClick(View view) {
|
||||
switch (view.getId()) {
|
||||
case R.id.combo_update:
|
||||
status.setText("Updating");
|
||||
case R.id.combo_refresh:
|
||||
status.setText("Refreshing");
|
||||
Thread thread = new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
|
|
@ -15,11 +15,11 @@
|
|||
android:orientation="vertical">
|
||||
|
||||
<Button
|
||||
android:id="@+id/combo_update"
|
||||
android:id="@+id/combo_refresh"
|
||||
style="?android:attr/buttonStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Update" />
|
||||
android:text="Refresh" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
|
Loading…
Reference in a new issue