diff options
author | lado <herrlado@gmail.com> | 2013-10-25 01:24:26 +0200 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2013-10-25 01:24:26 +0200 |
commit | d00cc87ffa3fd2de771da54dcbf6f3fdd30dfe5f (patch) | |
tree | 79698317fa54058aeb718ca20aa57fa993d6843a | |
parent | dc82e86512a476aa09f3aa5a315d1fccd9e58f6e (diff) | |
download | vdr-manager-d00cc87ffa3fd2de771da54dcbf6f3fdd30dfe5f.tar.gz vdr-manager-d00cc87ffa3fd2de771da54dcbf6f3fdd30dfe5f.tar.bz2 |
hide
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java | 7 |
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); |