summaryrefslogtreecommitdiff
path: root/vdrmanager/src/de
diff options
context:
space:
mode:
Diffstat (limited to 'vdrmanager/src/de')
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java
index 80cc927..9669be7 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java
@@ -20,6 +20,7 @@ import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemLongClickListener;
+import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;
import de.bjusystems.vdrmanager.R;
@@ -73,6 +74,8 @@ public class RecordingListActivity extends BaseEventListActivity<Recording>
private TextView driverInfo;
+ private View driverInfoContainer;
+
private int totalMB = -1;
private int usedMB = -1;
@@ -88,7 +91,8 @@ public class RecordingListActivity extends BaseEventListActivity<Recording>
// attach adapter to ListView
listView = (ListView) findViewById(R.id.recording_list);
folderInfo = (TextView) findViewById(R.id.folder_info);
- driverInfo = (TextView) findViewById(R.id.drive_info);
+ driverInfoContainer = findViewById(R.id.driver_info_container);
+ driverInfo = (TextView) driverInfoContainer.findViewById(R.id.drive_info);
currentCount = (TextView) findViewById(R.id.current_count);
listView.setAdapter(adapter);
@@ -490,6 +494,7 @@ public class RecordingListActivity extends BaseEventListActivity<Recording>
totalMB = Integer.valueOf(split[0]);
usedMB = Integer.valueOf(split[1]);
percent = Integer.valueOf(split[2]);
+ driverInfoContainer.setVisibility(View.VISIBLE);
driverInfo.setText(getString(R.string.drive_info, (totalMB - usedMB) / 1024, totalMB / 1024, percent));
} catch (Exception ex) {
Log.w(TAG, ex.getMessage(), ex);