From ce775c6e8d0be2cc9d4489ba7fbf8c81c44243fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20=C3=96nnerby?= Date: Wed, 12 Aug 2009 07:00:10 +0000 Subject: [PATCH] Bugfix in landscape mode. --- src/android/res/layout-land/play_control.xml | 2 +- src/android/src/org/musikcube/CategoryList.java | 2 -- src/android/src/org/musikcube/PlayerControl.java | 11 ----------- src/android/src/org/musikcube/TrackList.java | 3 --- 4 files changed, 1 insertion(+), 17 deletions(-) diff --git a/src/android/res/layout-land/play_control.xml b/src/android/res/layout-land/play_control.xml index a7132e634..86f2febe8 100644 --- a/src/android/res/layout-land/play_control.xml +++ b/src/android/res/layout-land/play_control.xml @@ -7,7 +7,7 @@ android:paddingRight="8dp" android:gravity="center_vertical"> - + diff --git a/src/android/src/org/musikcube/CategoryList.java b/src/android/src/org/musikcube/CategoryList.java index 8241925ad..aa5fd3a9a 100644 --- a/src/android/src/org/musikcube/CategoryList.java +++ b/src/android/src/org/musikcube/CategoryList.java @@ -11,7 +11,6 @@ import org.musikcube.core.IQuery.OnQueryResultListener; import android.app.ListActivity; import android.app.ProgressDialog; -import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.os.Handler; @@ -22,7 +21,6 @@ import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; -import android.widget.LinearLayout; import android.widget.ListView; import android.widget.TextView; diff --git a/src/android/src/org/musikcube/PlayerControl.java b/src/android/src/org/musikcube/PlayerControl.java index 6fffbb658..fb061e624 100644 --- a/src/android/src/org/musikcube/PlayerControl.java +++ b/src/android/src/org/musikcube/PlayerControl.java @@ -1,15 +1,10 @@ package org.musikcube; -import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; -import java.util.Timer; -import java.util.TimerTask; - import org.musikcube.core.IQuery; import org.musikcube.core.Library; -import org.musikcube.core.MetadataQuery; import org.musikcube.core.Player; import org.musikcube.core.Track; import org.musikcube.core.IQuery.OnQueryResultListener; @@ -28,7 +23,6 @@ import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.view.View.OnClickListener; -import android.webkit.DownloadListener; import android.widget.ImageButton; import android.widget.ImageView; import android.widget.SeekBar; @@ -36,11 +30,8 @@ import android.widget.TextView; public class PlayerControl extends Activity implements OnTrackUpdateListener, OnQueryResultListener { - private int trackId = 0; private Track track = new Track(); - private int buffer = 0; private int duration = 0; - private int secondsPlayed = 0; private Object lock = new Object(); @Override @@ -74,13 +65,11 @@ public class PlayerControl extends Activity implements OnTrackUpdateListener, On public void OnTrackBufferUpdate(int percent) { synchronized(lock){ - this.buffer = percent; } this.callbackTrackPositionsUpdateHandler.post(this.callbackTrackPositionsUpdateRunnable); } public void OnTrackPositionUpdate(int secondsPlayed) { synchronized(lock){ - this.secondsPlayed = secondsPlayed; } this.callbackTrackPositionsUpdateHandler.post(this.callbackTrackPositionsUpdateRunnable); } diff --git a/src/android/src/org/musikcube/TrackList.java b/src/android/src/org/musikcube/TrackList.java index 1dafd37e9..884e4c417 100644 --- a/src/android/src/org/musikcube/TrackList.java +++ b/src/android/src/org/musikcube/TrackList.java @@ -13,11 +13,9 @@ import org.musikcube.core.Track; import org.musikcube.core.IQuery.OnQueryResultListener; import android.app.ListActivity; -import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.os.Handler; -import android.util.Log; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuInflater; @@ -25,7 +23,6 @@ import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; -import android.widget.LinearLayout; import android.widget.ListView; import android.widget.TextView;