mirror of
https://github.com/samsonjs/media.git
synced 2026-04-10 12:05:47 +00:00
Clean up naming of demo app download components
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=193940323
This commit is contained in:
parent
f6d5cb9934
commit
79c105be59
4 changed files with 11 additions and 15 deletions
|
|
@ -76,19 +76,17 @@
|
|||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<activity android:name=".DownloaderActivity"/>
|
||||
<activity android:name="com.google.android.exoplayer2.demo.DownloadActivity"/>
|
||||
|
||||
<service
|
||||
android:exported="false"
|
||||
android:name=".DemoDownloadService">
|
||||
<service android:name="com.google.android.exoplayer2.demo.DemoDownloadService"
|
||||
android:exported="false">
|
||||
<intent-filter>
|
||||
<action android:name="com.google.android.exoplayer.downloadService.action.INIT"/>
|
||||
<category android:name="android.intent.category.DEFAULT"/>
|
||||
</intent-filter>
|
||||
</service>
|
||||
|
||||
<service
|
||||
android:name="com.google.android.exoplayer2.scheduler.PlatformScheduler$PlatformSchedulerService"
|
||||
<service android:name="com.google.android.exoplayer2.scheduler.PlatformScheduler$PlatformSchedulerService"
|
||||
android:permission="android.permission.BIND_JOB_SERVICE"
|
||||
android:exported="true"/>
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import com.google.android.exoplayer2.ui.DownloadNotificationUtil;
|
|||
import com.google.android.exoplayer2.ui.NotificationUtil;
|
||||
import com.google.android.exoplayer2.util.ErrorMessageProvider;
|
||||
|
||||
/** Demo DownloadService implementation. */
|
||||
/** A service for downloading media. */
|
||||
public class DemoDownloadService extends DownloadService {
|
||||
|
||||
private static final String CHANNEL_ID = "download_channel";
|
||||
|
|
|
|||
|
|
@ -50,8 +50,8 @@ import java.io.IOException;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/** An activity that downloads streams. */
|
||||
public class DownloaderActivity extends Activity {
|
||||
/** An activity for downloading media. */
|
||||
public class DownloadActivity extends Activity {
|
||||
|
||||
public static final String PLAYER_INTENT = "player_intent";
|
||||
public static final String SAMPLE_NAME = "sample_name";
|
||||
|
|
@ -49,9 +49,7 @@ import java.util.ArrayList;
|
|||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* An activity for selecting from a list of samples.
|
||||
*/
|
||||
/** An activity for selecting from a list of media samples. */
|
||||
public class SampleChooserActivity extends Activity {
|
||||
|
||||
private static final String TAG = "SampleChooserActivity";
|
||||
|
|
@ -128,9 +126,9 @@ public class SampleChooserActivity extends Activity {
|
|||
.show();
|
||||
return;
|
||||
}
|
||||
Intent intent = new Intent(this, DownloaderActivity.class);
|
||||
intent.putExtra(DownloaderActivity.SAMPLE_NAME, sample.name);
|
||||
intent.putExtra(DownloaderActivity.PLAYER_INTENT, sample.buildIntent(this));
|
||||
Intent intent = new Intent(this, DownloadActivity.class);
|
||||
intent.putExtra(DownloadActivity.SAMPLE_NAME, sample.name);
|
||||
intent.putExtra(DownloadActivity.PLAYER_INTENT, sample.buildIntent(this));
|
||||
startActivity(intent);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue