summaryrefslogtreecommitdiff
path: root/vdrmanager/src/de
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2013-10-27 10:37:49 +0100
committerlado <herrlado@gmail.com>2013-10-27 10:37:49 +0100
commitd9200161d6d6a005a53714fde893b1eec3aa25fc (patch)
tree3a17d3a2d0357062d89659c08290699a581115c6 /vdrmanager/src/de
parent93ade848ddc97f939ca7a1718b84c18ff74465f8 (diff)
downloadvdr-manager-d9200161d6d6a005a53714fde893b1eec3aa25fc.tar.gz
vdr-manager-d9200161d6d6a005a53714fde893b1eec3aa25fc.tar.bz2
Progressbar drive
Diffstat (limited to 'vdrmanager/src/de')
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java
index 187042c..0d65b0c 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java
@@ -21,6 +21,7 @@ import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemLongClickListener;
import android.widget.ListView;
+import android.widget.ProgressBar;
import android.widget.TextView;
import de.bjusystems.vdrmanager.R;
import de.bjusystems.vdrmanager.data.Event;
@@ -75,6 +76,8 @@ public class RecordingListActivity extends BaseEventListActivity<Recording>
private View driverInfoContainer;
+ private ProgressBar drive_info_pb;
+
private int totalMB = -1;
private int freeMB = -1;
@@ -92,6 +95,7 @@ public class RecordingListActivity extends BaseEventListActivity<Recording>
folderInfo = (TextView) findViewById(R.id.folder_info);
driverInfoContainer = findViewById(R.id.driver_info_container);
driverInfo = (TextView) driverInfoContainer.findViewById(R.id.drive_info);
+ drive_info_pb = (ProgressBar) driverInfoContainer.findViewById(R.id.drive_info_pb);
currentCount = (TextView) findViewById(R.id.current_count);
listView.setAdapter(adapter);
@@ -495,6 +499,7 @@ public class RecordingListActivity extends BaseEventListActivity<Recording>
percent = Integer.valueOf(split[2]);
driverInfoContainer.setVisibility(View.VISIBLE);
driverInfo.setText(getString(R.string.drive_info, (freeMB) / 1024, totalMB / 1024, 100 - percent));
+ drive_info_pb.setProgress(percent);
} catch (Exception ex) {
Log.w(TAG, ex.getMessage(), ex);
}