From d00cc87ffa3fd2de771da54dcbf6f3fdd30dfe5f Mon Sep 17 00:00:00 2001 From: lado Date: Fri, 25 Oct 2013 01:24:26 +0200 Subject: hide --- .../src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'vdrmanager/src/de/bjusystems') 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 private TextView driverInfo; + private View driverInfoContainer; + private int totalMB = -1; private int usedMB = -1; @@ -88,7 +91,8 @@ public class RecordingListActivity extends BaseEventListActivity // 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 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); -- cgit v1.2.3