1 /* This file is auto-generated from BrowseActivity.java. DO NOT MODIFY. */ 2 3 /* 4 * Copyright (C) 2014 The Android Open Source Project 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except 7 * in compliance with the License. You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software distributed under the License 12 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 13 * or implied. See the License for the specific language governing permissions and limitations under 14 * the License. 15 */ 16 package com.example.android.leanback; 17 18 import android.support.v4.app.FragmentActivity; 19 import android.os.Bundle; 20 21 public class BrowseSupportActivity extends FragmentActivity { 22 /** Called when the activity is first created. */ 23 @Override onCreate(Bundle savedInstanceState)24 public void onCreate(Bundle savedInstanceState) { 25 super.onCreate(savedInstanceState); 26 setContentView(R.layout.browse_support); 27 } 28 29 @Override onAttachedToWindow()30 public void onAttachedToWindow() { 31 super.onAttachedToWindow(); 32 BackgroundHelper.attach(this); 33 } 34 35 @Override onStop()36 public void onStop() { 37 BackgroundHelper.release(this); 38 super.onStop(); 39 } 40 } 41