From 04c18d7f0f28f976cca05601a154b3bc941fdb1f Mon Sep 17 00:00:00 2001 From: lado Date: Sun, 27 Oct 2013 10:26:22 +0100 Subject: fixed free vs used --- .../src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'vdrmanager/src') 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 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 } 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); } -- cgit v1.2.3