// Path: app/src/main/java/com/bdc/ociney/core/BaseActivity.java
// public class BaseActivity extends AppCompatActivity implements LifecycleRegistryOwner {
// 
//     private final LifecycleRegistry mRegistry = new LifecycleRegistry(this);
//     private AdsManager adsManager;
// 
//     public LifecycleRegistry getLifecycle() {
//         return this.mRegistry;
//     }
// 
//     @Override
//     protected void onCreate(@Nullable Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         adsManager = new AdsManager(this, getLifecycle());
//         //if(android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) {
//         //    getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
//         //}
//     }
// 
//     public AdsManager getAdsManager() {
//         return adsManager;
//     }
// 
//     public MainApplication getApp() {
//         return ((MainApplication) getApplication());
//     }
// }
// 
// Path: app/src/main/java/com/bdc/ociney/fragment/ListCastingFragment.java
// public class ListCastingFragment extends BaseFragment {
// 
//     public static List<CastMember> casting;
//     static Movie movie;
// 
//     ObjectAdapter<CastMember> adapter;
//     AbsListView list;
// 
//     MovingImageView imageFond;
// 
//     public static ListCastingFragment newInstance() {
// 
//         Bundle args = new Bundle();
// 
//         ListCastingFragment fragment = new ListCastingFragment();
//         fragment.setArguments(args);
//         return fragment;
//     }
// 
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container,
//                              Bundle savedInstanceState) {
// 
//         View view = inflater.inflate(R.layout.fragment_list_casting,
//                 container, false);
// 
//         setFragmentView(view);
// 
//         charger();
//         remplir();
//         ajouterListeners();
// 
// 
//         return view;
//     }
// 
//     @Override
//     public void onResume() {
//         super.onResume();
//     }
// 
//     @Override
//     public void onPause() {
//         super.onPause();
//     }
// 
//     @Override
//     protected void charger() {
//         list = (AbsListView) View.inflate(getActivity(), R.layout.list, null);
//         ((ViewGroup) fragmentView).addView(list);
// 
//         this.imageFond = (MovingImageView) findViewById(R.id.imageFond);
//     }
// 
//     @Override
//     protected void remplir() {
//         adapter = new ObjectAdapter<CastMember>(getActivity(), casting, R.layout.casting_member, CellMember.class);
//         list.setAdapter(adapter);
//         adapter.notifyDataSetChanged();
// 
//         if (movie != null)
//             imageFond.activerBlur(getActivity().getResources().getInteger(R.integer.fragment_movie_fond_blur))
//                     .activerAnimations().loadFromUrl(getActivity(), movie.getUrlPoster(getActivity().getResources().getInteger(R.integer.fragment_movie_fond_blur_height)));
// 
//     }
// 
//     @Override
//     protected void ajouterListeners() {
//     }
// 
//     @Override
//     public void onClick(View view) {
// 
//     }
// }


import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import com.bdc.ociney.R;
import com.bdc.ociney.core.BaseActivity;
import com.bdc.ociney.fragment.ListCastingFragment;
import butterknife.BindView;
import butterknife.ButterKnife;
package com.bdc.ociney.activity;





/**
 * Created by florentchampigny on 21/04/2014.
 */
public class MovieCastingActivity extends BaseActivity {

    @BindView(R.id.toolbar)
    Toolbar toolbar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //getWindow().requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
        setContentView(R.layout.activity_movie_casting);
        ButterKnife.bind(this);

        setSupportActionBar(toolbar);
        toolbar.setTitleTextColor(Color.WHITE);

        getSupportActionBar().setHomeAsUpIndicator(getResources().getDrawable(R.drawable.ab_back_mtrl_am_alpha));
        getSupportActionBar().setHomeButtonEnabled(true);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);

        getSupportFragmentManager().beginTransaction()
// Path: app/src/main/java/com/bdc/ociney/core/BaseActivity.java
// public class BaseActivity extends AppCompatActivity implements LifecycleRegistryOwner {
// 
//     private final LifecycleRegistry mRegistry = new LifecycleRegistry(this);
//     private AdsManager adsManager;
// 
//     public LifecycleRegistry getLifecycle() {
//         return this.mRegistry;
//     }
// 
//     @Override
//     protected void onCreate(@Nullable Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         adsManager = new AdsManager(this, getLifecycle());
//         //if(android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) {
//         //    getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
//         //}
//     }
// 
//     public AdsManager getAdsManager() {
//         return adsManager;
//     }
// 
//     public MainApplication getApp() {
//         return ((MainApplication) getApplication());
//     }
// }
// 
// Path: app/src/main/java/com/bdc/ociney/fragment/ListCastingFragment.java
// public class ListCastingFragment extends BaseFragment {
// 
//     public static List<CastMember> casting;
//     static Movie movie;
// 
//     ObjectAdapter<CastMember> adapter;
//     AbsListView list;
// 
//     MovingImageView imageFond;
// 
//     public static ListCastingFragment newInstance() {
// 
//         Bundle args = new Bundle();
// 
//         ListCastingFragment fragment = new ListCastingFragment();
//         fragment.setArguments(args);
//         return fragment;
//     }
// 
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container,
//                              Bundle savedInstanceState) {
// 
//         View view = inflater.inflate(R.layout.fragment_list_casting,
//                 container, false);
// 
//         setFragmentView(view);
// 
//         charger();
//         remplir();
//         ajouterListeners();
// 
// 
//         return view;
//     }
// 
//     @Override
//     public void onResume() {
//         super.onResume();
//     }
// 
//     @Override
//     public void onPause() {
//         super.onPause();
//     }
// 
//     @Override
//     protected void charger() {
//         list = (AbsListView) View.inflate(getActivity(), R.layout.list, null);
//         ((ViewGroup) fragmentView).addView(list);
// 
//         this.imageFond = (MovingImageView) findViewById(R.id.imageFond);
//     }
// 
//     @Override
//     protected void remplir() {
//         adapter = new ObjectAdapter<CastMember>(getActivity(), casting, R.layout.casting_member, CellMember.class);
//         list.setAdapter(adapter);
//         adapter.notifyDataSetChanged();
// 
//         if (movie != null)
//             imageFond.activerBlur(getActivity().getResources().getInteger(R.integer.fragment_movie_fond_blur))
//                     .activerAnimations().loadFromUrl(getActivity(), movie.getUrlPoster(getActivity().getResources().getInteger(R.integer.fragment_movie_fond_blur_height)));
// 
//     }
// 
//     @Override
//     protected void ajouterListeners() {
//     }
// 
//     @Override
//     public void onClick(View view) {
// 
//     }
// }


// Path: app/src/main/java/com/bdc/ociney/activity/MovieCastingActivity.java
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import com.bdc.ociney.R;
import com.bdc.ociney.core.BaseActivity;
import com.bdc.ociney.fragment.ListCastingFragment;
import butterknife.BindView;
import butterknife.ButterKnife;

package com.bdc.ociney.activity;





/**
 * Created by florentchampigny on 21/04/2014.
 */
public class MovieCastingActivity extends BaseActivity {

    @BindView(R.id.toolbar)
    Toolbar toolbar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //getWindow().requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
        setContentView(R.layout.activity_movie_casting);
        ButterKnife.bind(this);

        setSupportActionBar(toolbar);
        toolbar.setTitleTextColor(Color.WHITE);

        getSupportActionBar().setHomeAsUpIndicator(getResources().getDrawable(R.drawable.ab_back_mtrl_am_alpha));
        getSupportActionBar().setHomeButtonEnabled(true);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);

        getSupportFragmentManager().beginTransaction()
                .replace(R.id.fragmentLayout, ListCastingFragment.newInstance())