1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-24 09:00:31 +00:00

Merge pull request #1109 from TobiGr/soundcloud-kiosk

Enable SoundCloud kiosks as main page fragment for debug and beta
This commit is contained in:
Christian Schabesberger 2018-02-20 13:38:20 +01:00 committed by GitHub
commit 77d5714059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,7 @@ import android.view.ViewGroup;
import android.widget.ImageView; import android.widget.ImageView;
import android.widget.TextView; import android.widget.TextView;
import org.schabi.newpipe.MainActivity;
import org.schabi.newpipe.R; import org.schabi.newpipe.R;
import org.schabi.newpipe.extractor.NewPipe; import org.schabi.newpipe.extractor.NewPipe;
import org.schabi.newpipe.extractor.ServiceList; import org.schabi.newpipe.extractor.ServiceList;
@ -45,6 +46,8 @@ import java.util.Vector;
public class SelectKioskFragment extends DialogFragment { public class SelectKioskFragment extends DialogFragment {
private static final boolean DEBUG = MainActivity.DEBUG;
RecyclerView recyclerView = null; RecyclerView recyclerView = null;
SelectKioskAdapter selectKioskAdapter = null; SelectKioskAdapter selectKioskAdapter = null;
@ -122,7 +125,7 @@ public class SelectKioskFragment extends DialogFragment {
for(StreamingService service : NewPipe.getServices()) { for(StreamingService service : NewPipe.getServices()) {
//TODO: Multi-service support //TODO: Multi-service support
if (service.getServiceId() != ServiceList.YouTube.getServiceId()) continue; if (service.getServiceId() != ServiceList.YouTube.getServiceId() && !DEBUG) continue;
for(String kioskId : service.getKioskList().getAvailableKiosks()) { for(String kioskId : service.getKioskList().getAvailableKiosks()) {
String name = String.format(getString(R.string.service_kiosk_string), String name = String.format(getString(R.string.service_kiosk_string),