git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

...
 
Commits (1)
......@@ -17,6 +17,7 @@
<ImageView android:id="@+id/ImageView01" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_marginTop="10px" android:layout_marginBottom="10px" android:src="@drawable/tower"></ImageView>
<Button android:layout_width="wrap_content" android:id="@+id/tagStationButton" android:layout_height="wrap_content" android:text="@string/tag_stations"></Button>
<Button android:layout_width="wrap_content" android:id="@+id/loveStationButton" android:layout_height="wrap_content" android:text="@string/loved_tracks"></Button>
<Button android:layout_width="wrap_content" android:id="@+id/recommendedStationButton" android:layout_height="wrap_content" android:text="@string/recommended_station"></Button>
<Button android:layout_width="wrap_content" android:id="@+id/communityStationButton" android:layout_height="wrap_content" android:text="@string/community_loved"></Button>
</TableLayout>
</ScrollView>
......@@ -45,4 +46,4 @@
</TableLayout>
</ScrollView>
</ViewAnimator>
</LinearLayout>
\ No newline at end of file
</LinearLayout>
......@@ -12,6 +12,7 @@
<string name="register">Visit www.libre.fm to sign up for a free account.</string>
<string name="tag_stations">Tag Stations</string>
<string name="loved_tracks">Your Loved Tracks</string>
<string name="recommended_station">Recommended Tracks</string>
<string name="community_loved">Community\'s Loved Tracks</string>
<string name="add_station">Add Station</string>
<string name="sd_card_needed">Please ensure an SD card is inserted before attempting to download songs.</string>
......
......@@ -158,6 +158,16 @@ public class LibreDroid extends ListActivity {
LibreDroid.this.nextPage();
}
});
Button recommendedStation = (Button) findViewById(R.id.recommendedStationButton);
recommendedStation.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
LibreDroid.this.libreServiceConn.service.tuneStation("user", username + "/recommended");
LibreDroid.this.nextPage();
LibreDroid.this.nextPage();
LibreDroid.this.nextPage();
}
});
Button communityLoveStation = (Button) findViewById(R.id.communityStationButton);
communityLoveStation.setOnClickListener(new OnClickListener() {
......@@ -558,4 +568,4 @@ public class LibreDroid extends ListActivity {
}
}
\ No newline at end of file
}