Showqueue fixes
The actionbar title button will now terminate this activity
This commit is contained in:
parent
dbdfeebc17
commit
1f9cd5e745
@ -62,7 +62,6 @@ THE SOFTWARE.
|
||||
<activity
|
||||
android:name="ShowQueueActivity"
|
||||
android:theme="@style/BackActionBar"
|
||||
android:excludeFromRecents="true"
|
||||
android:launchMode="singleInstance" />
|
||||
<receiver
|
||||
android:name=".OneCellWidget"
|
||||
|
@ -151,6 +151,7 @@
|
||||
<string name="enqueue_current_genre">Genre einreihen</string>
|
||||
<string name="clear_queue">Warteschlange leeren</string>
|
||||
<string name="show_queue">Warteschlange anzeigen</string>
|
||||
<string name="queue">Warteschlange</string>
|
||||
<string name="toggle_controls">Steuerelemente ein/-ausblenden</string>
|
||||
<plurals name="playing">
|
||||
<item quantity="one">1 Titel wird abgespielt.</item>
|
||||
|
@ -233,5 +233,6 @@ THE SOFTWARE.
|
||||
<string name="enqueue_current_genre">Enqueue genre</string>
|
||||
<string name="clear_queue">Clear queue</string>
|
||||
<string name="show_queue">Show queue</string>
|
||||
<string name="queue">Queue</string>
|
||||
<string name="toggle_controls">Toggle controls</string>
|
||||
</resources>
|
||||
|
@ -27,6 +27,7 @@ import java.util.Arrays;
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.view.MenuItem;
|
||||
import android.widget.AdapterView;
|
||||
import android.widget.AdapterView.OnItemClickListener;
|
||||
import android.widget.AdapterView.OnItemLongClickListener;
|
||||
@ -41,8 +42,10 @@ public class ShowQueueActivity extends Activity {
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
setTitle(R.string.queue);
|
||||
setContentView(R.layout.showqueue_listview);
|
||||
|
||||
|
||||
mListView = (ListView) findViewById(R.id.list);
|
||||
listAdapter = new ShowQueueAdapter(this, R.layout.showqueue_row);
|
||||
mListView.setAdapter(listAdapter);
|
||||
@ -66,6 +69,16 @@ public class ShowQueueActivity extends Activity {
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
** Called when the user hits the ActionBar item
|
||||
** There is only one item (title) and it should quit this activity
|
||||
*/
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
finish();
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
** Called when we are displayed (again)
|
||||
** This will always refresh the whole song list
|
||||
|
Loading…
x
Reference in New Issue
Block a user