We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit b9f688a6 authored by Mike Sheldon's avatar Mike Sheldon

Add support user's loved stations and the community station to libredroid

parent 2c9263cf
......@@ -29,11 +29,12 @@ public final class R {
public static final int LinearLayout01=0x7f050000;
public static final int ScrollView01=0x7f050001;
public static final int TableLayout01=0x7f05000e;
public static final int TableLayout02=0x7f050012;
public static final int TableLayout02=0x7f050013;
public static final int TableLayout03=0x7f050003;
public static final int TableRow01=0x7f050010;
public static final int TableRow02=0x7f050011;
public static final int TableRow03=0x7f050017;
public static final int TableRow03=0x7f050012;
public static final int TableRow04=0x7f050018;
public static final int TextView01=0x7f05000f;
public static final int TextView02=0x7f050007;
public static final int TextView03=0x7f050009;
......@@ -41,18 +42,18 @@ public final class R {
public static final int TextView05=0x7f05000c;
public static final int TextView06=0x7f050005;
public static final int TextView07=0x7f050006;
public static final int albumImage=0x7f050014;
public static final int artistText=0x7f050016;
public static final int banButton=0x7f050018;
public static final int albumImage=0x7f050015;
public static final int artistText=0x7f050017;
public static final int banButton=0x7f050019;
public static final int loginButton=0x7f05000b;
public static final int loveButton=0x7f05001d;
public static final int nextButton=0x7f05001b;
public static final int loveButton=0x7f05001e;
public static final int nextButton=0x7f05001c;
public static final int passwordEntry=0x7f05000a;
public static final int playPauseButton=0x7f05001a;
public static final int prevButton=0x7f050019;
public static final int saveButton=0x7f05001c;
public static final int stationNameText=0x7f050013;
public static final int titleText=0x7f050015;
public static final int playPauseButton=0x7f05001b;
public static final int prevButton=0x7f05001a;
public static final int saveButton=0x7f05001d;
public static final int stationNameText=0x7f050014;
public static final int titleText=0x7f050016;
public static final int usernameEntry=0x7f050008;
public static final int viewAnimator=0x7f050002;
}
......
......@@ -18,23 +18,17 @@
</TableLayout><TableLayout android:id="@+id/TableLayout01" android:layout_height="wrap_content" android:layout_width="fill_parent" android:visibility="visible"><ImageView android:id="@+id/ImageView01" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_marginTop="5px" android:src="@drawable/logo"></ImageView><TextView android:id="@+id/TextView01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Popular Stations:" android:textStyle="bold"></TextView><TableRow android:id="@+id/TableRow01" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_marginTop="10px" android:gravity="center_horizontal">
</TableRow>
<TableRow android:id="@+id/TableRow02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal">
</TableLayout>
<TableLayout android:id="@+id/TableLayout01" android:layout_height="wrap_content" android:layout_width="fill_parent" android:visibility="visible"><ImageView android:id="@+id/ImageView01" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_marginTop="5px" android:src="@drawable/logo"></ImageView><TextView android:id="@+id/TextView01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Stations Tagged With:" android:textStyle="bold"></TextView><TableRow android:id="@+id/TableRow01" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_marginTop="10px" android:gravity="center_horizontal"></TableRow>
<TableRow android:id="@+id/TableRow02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal"></TableRow>
<TableRow android:id="@+id/TableRow03" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal"></TableRow>
</TableLayout>
</TableRow></TableLayout>
<TableLayout android:id="@+id/TableLayout02" android:layout_height="wrap_content" android:layout_width="fill_parent" android:gravity="center_horizontal" android:layout_gravity="center_horizontal"><ImageView android:id="@+id/ImageView01" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_marginTop="5px" android:src="@drawable/logo"></ImageView><TextView android:layout_height="wrap_content" android:id="@+id/stationNameText" android:textStyle="bold" android:layout_gravity="center_horizontal" android:layout_width="fill_parent" android:gravity="center_horizontal"></TextView><ImageView android:layout_height="wrap_content" android:id="@+id/albumImage" android:src="@drawable/album" android:layout_width="fill_parent" android:layout_marginTop="10px"></ImageView><TextView android:layout_height="wrap_content" android:id="@+id/titleText" style="bold" android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_gravity="center_horizontal" android:layout_marginTop="5px" android:textSize="7pt" android:maxLines="2"></TextView><TextView android:layout_height="wrap_content" android:id="@+id/artistText" android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_gravity="center_horizontal" android:maxLines="2"></TextView>
<TableRow android:id="@+id/TableRow03" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_marginTop="10px" android:layout_gravity="center_horizontal" android:gravity="center_horizontal">
<TableRow android:id="@+id/TableRow04" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_marginTop="10px" android:layout_gravity="center_horizontal" android:gravity="center_horizontal">
<ImageButton android:layout_height="wrap_content" android:id="@+id/banButton" android:src="@drawable/ban" android:layout_width="fill_parent" android:layout_marginRight="1px"></ImageButton>
<ImageButton android:layout_height="wrap_content" android:id="@+id/prevButton" android:src="@drawable/prev" android:layout_width="fill_parent"></ImageButton>
......
......@@ -290,12 +290,14 @@ public class LibreService extends Service implements OnBufferingUpdateListener,
public void tuneStation(String type, String station) {
Toast.makeText(this, "Tuning in...", Toast.LENGTH_LONG).show();
Log.d("librefm", "Tuning to librefm://" + type + "/" + station);
new TuneStationTask().execute(type, station);
}
private class TuneStationTask extends AsyncTask<String,String,String> {
protected String doInBackground(String... params) {
String type = params[0];
String station = params[1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment