// 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/core/BaseFragment.java
// public abstract class BaseFragment extends Fragment implements View.OnClickListener {
// 
//     protected View fragmentView;
//     boolean tournerRoulette = false;
// 
//     public void setFragmentView(View fragmentView) {
//         this.fragmentView = fragmentView;
//     }
// 
//     public View findViewById(int id) {
//         if (fragmentView != null)
//             return fragmentView.findViewById(id);
//         else
//             return null;
//     }
// 
//     protected void charger(){}
// 
//     protected void remplir(){}
// 
//     protected void ajouterListeners(){}
// 
//     public void search(String text) {
//     }
// 
//     public void afficherVide(boolean afficher) {
//         try {
//             if (afficher)
//                 fragmentView.findViewById(R.id.empty).setVisibility(View.VISIBLE);
//             else
//                 fragmentView.findViewById(R.id.empty).setVisibility(View.INVISIBLE);
//         } catch (Exception e) {
//         }
//     }
// 
//     protected void tournerRoulette(boolean tourner) {
//         tournerRoulette(tourner, R.id.placeholder_image);
//     }
// 
//     protected void tournerRoulette(boolean tourner, int id) {
// 
//         final View roulette = findViewById(id);
// 
//         if (roulette != null) {
//             if (tourner) {
//                 roulette.setVisibility(View.VISIBLE);
//                 int previousDegrees = 0;
//                 int degrees = 360;
//                 final RotateAnimation animation = new RotateAnimation(previousDegrees, degrees,
//                         Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
//                 animation.setFillEnabled(true);
//                 animation.setFillAfter(true);
//                 animation.setDuration(1500);//Set the duration of the animation to 1 sec.
//                 animation.setAnimationListener(new Animation.AnimationListener() {
//                     @Override
//                     public void onAnimationStart(Animation animation) {
// 
//                     }
// 
//                     @Override
//                     public void onAnimationEnd(Animation animation) {
//                         if (tournerRoulette) {
//                             roulette.startAnimation(animation);
//                         } else
//                             roulette.animate().alpha(0).start();
//                     }
// 
//                     @Override
//                     public void onAnimationRepeat(Animation animation) {
// 
//                     }
//                 });
//                 roulette.startAnimation(animation);
//             } else {
//                 tournerRoulette = false;
//             }
//         }
//     }
// 
//     public void onErreurReseau() {
//         //Crouton.makeText(getActivity(), R.string.erreur_reseau, Style.ALERT).show();
//         Toast.makeText(getActivity(), R.string.erreur_reseau, Toast.LENGTH_SHORT).show();
//     }
// }


import android.animation.ObjectAnimator;
import android.app.ActionBar;
import android.app.ActivityOptions;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.bdc.ociney.BuildConfig;
import com.bdc.ociney.R;
import com.bdc.ociney.core.BaseActivity;
import com.bdc.ociney.fragment.core.BaseFragment;
import butterknife.BindView;
import butterknife.ButterKnife;
package com.bdc.ociney.fragment;






public class CreditsFragment extends BaseFragment implements View.OnTouchListener {

    @BindView(R.id.image0) View image0;
    @BindView(R.id.image1) View image1;
    @BindView(R.id.image2) View image2;
    @BindView(R.id.version) TextView version;

    public static CreditsFragment newInstance() {
        Bundle args = new Bundle();
        CreditsFragment fragment = new CreditsFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.credits, container, false);
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        ButterKnife.bind(this, view);
        setFragmentView(view);

        ((BaseActivity)getActivity()).getSupportActionBar().setDisplayShowTitleEnabled(true);
        ((BaseActivity)getActivity()).getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);

        charger();
// 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/core/BaseFragment.java
// public abstract class BaseFragment extends Fragment implements View.OnClickListener {
// 
//     protected View fragmentView;
//     boolean tournerRoulette = false;
// 
//     public void setFragmentView(View fragmentView) {
//         this.fragmentView = fragmentView;
//     }
// 
//     public View findViewById(int id) {
//         if (fragmentView != null)
//             return fragmentView.findViewById(id);
//         else
//             return null;
//     }
// 
//     protected void charger(){}
// 
//     protected void remplir(){}
// 
//     protected void ajouterListeners(){}
// 
//     public void search(String text) {
//     }
// 
//     public void afficherVide(boolean afficher) {
//         try {
//             if (afficher)
//                 fragmentView.findViewById(R.id.empty).setVisibility(View.VISIBLE);
//             else
//                 fragmentView.findViewById(R.id.empty).setVisibility(View.INVISIBLE);
//         } catch (Exception e) {
//         }
//     }
// 
//     protected void tournerRoulette(boolean tourner) {
//         tournerRoulette(tourner, R.id.placeholder_image);
//     }
// 
//     protected void tournerRoulette(boolean tourner, int id) {
// 
//         final View roulette = findViewById(id);
// 
//         if (roulette != null) {
//             if (tourner) {
//                 roulette.setVisibility(View.VISIBLE);
//                 int previousDegrees = 0;
//                 int degrees = 360;
//                 final RotateAnimation animation = new RotateAnimation(previousDegrees, degrees,
//                         Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
//                 animation.setFillEnabled(true);
//                 animation.setFillAfter(true);
//                 animation.setDuration(1500);//Set the duration of the animation to 1 sec.
//                 animation.setAnimationListener(new Animation.AnimationListener() {
//                     @Override
//                     public void onAnimationStart(Animation animation) {
// 
//                     }
// 
//                     @Override
//                     public void onAnimationEnd(Animation animation) {
//                         if (tournerRoulette) {
//                             roulette.startAnimation(animation);
//                         } else
//                             roulette.animate().alpha(0).start();
//                     }
// 
//                     @Override
//                     public void onAnimationRepeat(Animation animation) {
// 
//                     }
//                 });
//                 roulette.startAnimation(animation);
//             } else {
//                 tournerRoulette = false;
//             }
//         }
//     }
// 
//     public void onErreurReseau() {
//         //Crouton.makeText(getActivity(), R.string.erreur_reseau, Style.ALERT).show();
//         Toast.makeText(getActivity(), R.string.erreur_reseau, Toast.LENGTH_SHORT).show();
//     }
// }


// Path: app/src/main/java/com/bdc/ociney/fragment/CreditsFragment.java
import android.animation.ObjectAnimator;
import android.app.ActionBar;
import android.app.ActivityOptions;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.bdc.ociney.BuildConfig;
import com.bdc.ociney.R;
import com.bdc.ociney.core.BaseActivity;
import com.bdc.ociney.fragment.core.BaseFragment;
import butterknife.BindView;
import butterknife.ButterKnife;

package com.bdc.ociney.fragment;






public class CreditsFragment extends BaseFragment implements View.OnTouchListener {

    @BindView(R.id.image0) View image0;
    @BindView(R.id.image1) View image1;
    @BindView(R.id.image2) View image2;
    @BindView(R.id.version) TextView version;

    public static CreditsFragment newInstance() {
        Bundle args = new Bundle();
        CreditsFragment fragment = new CreditsFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.credits, container, false);
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        ButterKnife.bind(this, view);
        setFragmentView(view);

        ((BaseActivity)getActivity()).getSupportActionBar().setDisplayShowTitleEnabled(true);
        ((BaseActivity)getActivity()).getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);

        charger();
        remplir();