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