aboutsummaryrefslogtreecommitdiff
path: root/src/com/android/tv/dvr/ui/DvrSeriesSettingsActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/tv/dvr/ui/DvrSeriesSettingsActivity.java')
-rw-r--r--src/com/android/tv/dvr/ui/DvrSeriesSettingsActivity.java32
1 files changed, 13 insertions, 19 deletions
diff --git a/src/com/android/tv/dvr/ui/DvrSeriesSettingsActivity.java b/src/com/android/tv/dvr/ui/DvrSeriesSettingsActivity.java
index 6dd20b3a..1a51cf46 100644
--- a/src/com/android/tv/dvr/ui/DvrSeriesSettingsActivity.java
+++ b/src/com/android/tv/dvr/ui/DvrSeriesSettingsActivity.java
@@ -20,34 +20,27 @@ import android.app.Activity;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.support.v17.leanback.app.GuidedStepFragment;
-
import com.android.tv.R;
-import com.android.tv.TvApplication;
+import com.android.tv.Starter;
import com.android.tv.common.SoftPreconditions;
-/**
- * Activity to show details view in DVR.
- */
+/** Activity to show details view in DVR. */
public class DvrSeriesSettingsActivity extends Activity {
- /**
- * Name of series id added to the Intent.
- * Type: Long
- */
+ /** Name of series id added to the Intent. Type: Long */
public static final String SERIES_RECORDING_ID = "series_recording_id";
/**
* Name of the boolean flag to decide if the series recording with empty schedule and recording
- * will be removed.
- * Type: boolean
+ * will be removed. Type: boolean
*/
public static final String REMOVE_EMPTY_SERIES_RECORDING = "remove_empty_series_recording";
/**
- * Name of the boolean flag to decide if the setting fragment should be translucent.
- * Type: boolean
+ * Name of the boolean flag to decide if the setting fragment should be translucent. Type:
+ * boolean
*/
public static final String IS_WINDOW_TRANSLUCENT = "windows_translucent";
/**
- * Name of the program list. The list contains the programs which belong to the series.
- * Type: List<{@link com.android.tv.data.Program}>
+ * Name of the program list. The list contains the programs which belong to the series. Type:
+ * List<{@link com.android.tv.data.Program}>
*/
public static final String PROGRAM_LIST = "program_list";
@@ -67,7 +60,7 @@ public class DvrSeriesSettingsActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
- TvApplication.setCurrentRunningProcess(this, true);
+ Starter.start(this);
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_dvr_series_settings);
long seriesRecordingId = getIntent().getLongExtra(SERIES_RECORDING_ID, -1);
@@ -83,8 +76,9 @@ public class DvrSeriesSettingsActivity extends Activity {
@Override
public void onAttachedToWindow() {
if (!getIntent().getExtras().getBoolean(IS_WINDOW_TRANSLUCENT, true)) {
- getWindow().setBackgroundDrawable(
- new ColorDrawable(getColor(R.color.common_tv_background)));
+ getWindow()
+ .setBackgroundDrawable(
+ new ColorDrawable(getColor(R.color.common_tv_background)));
}
}
-} \ No newline at end of file
+}