diff options
author | lado <herrlado@gmail.com> | 2013-10-27 10:26:22 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2013-10-27 10:26:22 +0100 |
commit | 04c18d7f0f28f976cca05601a154b3bc941fdb1f (patch) | |
tree | e5c3479a966eea022cfb2106005cc24410c55bc7 /vdrmanager/src | |
parent | 4cf0feac2e8582a0073a6a80bc2fe4f194b1f423 (diff) | |
download | vdr-manager-04c18d7f0f28f976cca05601a154b3bc941fdb1f.tar.gz vdr-manager-04c18d7f0f28f976cca05601a154b3bc941fdb1f.tar.bz2 |
fixed free vs used
Diffstat (limited to 'vdrmanager/src')
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java index 9669be7..187042c 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java @@ -20,7 +20,6 @@ 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; @@ -78,7 +77,7 @@ public class RecordingListActivity extends BaseEventListActivity<Recording> private int totalMB = -1; - private int usedMB = -1; + private int freeMB = -1; private int percent = -1; @@ -492,10 +491,10 @@ public class RecordingListActivity extends BaseEventListActivity<Recording> } totalMB = Integer.valueOf(split[0]); - usedMB = Integer.valueOf(split[1]); + freeMB = 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)); + driverInfo.setText(getString(R.string.drive_info, (freeMB) / 1024, totalMB / 1024, 100 - percent)); } catch (Exception ex) { Log.w(TAG, ex.getMessage(), ex); } |