// Path: app/src/main/java/com/adkdevelopment/earthquakesurvival/App.java
// public class App extends Application {
// 
//     private static ApiManager sApiManager, sNewsManager;
//     private static Context sContext;
// 
//     // event bus from RxJava
//     private static RxBus _rxBus;
// 
//     // Singleton Retrofit for Earthquakes
//     public static ApiManager getApiManager() {
//         if (sApiManager == null) {
//             try {
//                 sApiManager = new ApiManager();
//             } catch (Exception e) {
//                 e.printStackTrace();
//             }
//         }
//         return sApiManager;
//     }
// 
//     // Singleton Retrofit for News
//     public static ApiManager getNewsManager() {
//         if (sNewsManager == null) {
//             try {
//                 sNewsManager = new ApiManager();
//             } catch (Exception e) {
//                 e.printStackTrace();
//             }
//         }
//         return sNewsManager;
//     }
// 
//     // singleton RxBus
//     public static RxBus getRxBusSingleton() {
//         if (_rxBus == null) {
//             _rxBus = new RxBus();
//         }
//         return _rxBus;
//     }
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// 
//         if (!BuildConfig.DEBUG) {
//             Fabric.with(this, new Crashlytics());
//         }
// 
//         sContext = getApplicationContext();
//     }
// 
//     public static Context getContext() {
//         return sContext;
//     }
// }
// 
// Path: app/src/main/java/com/adkdevelopment/earthquakesurvival/ui/adapters/InfoAdapter.java
// public class InfoAdapter extends RecyclerView.Adapter<InfoAdapter.ViewHolder> {
// 
//     private List<String> mTitles;
//     private List<String> mTexts;
// 
//     public InfoAdapter(List<String> title, List<String> text) {
//         super();
//         mTitles = title;
//         mTexts = text;
//     }
// 
//     public static class ViewHolder extends RecyclerView.ViewHolder {
// 
//         @BindView(R.id.info_title) TextView mTitle;
//         @BindView(R.id.info_text) TextView mText;
//         @BindView(R.id.info_card) CardView mInfoCard;
// 
//         public ViewHolder(View v)  {
//             super(v);
//             ButterKnife.bind(this, v);
//         }
//     }
// 
//     @Override
//     public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
// 
//         View v = LayoutInflater.from(parent.getContext())
//                 .inflate(R.layout.info_item_card, parent, false);
// 
//         return new ViewHolder(v);
//     }
// 
//     @Override
//     public void onBindViewHolder(ViewHolder holder, int position) {
//         holder.mTitle.setText(mTitles.get(position));
//         holder.mText.setText(Utilities.getHtmlText(mTexts.get(position)));
//         holder.mText.setMovementMethod(LinkMovementMethod.getInstance());
//     }
// 
//     @Override
//     public int getItemCount() {
//         return mTitles.size();
//     }
// }
// 
// Path: app/src/main/java/com/adkdevelopment/earthquakesurvival/eventbus/RxBus.java
// public class RxBus {
// 
//     private final Subject<Object, Object> _bus = new SerializedSubject<>(PublishSubject.create());
// 
//     public void send(Object o) {
//         _bus.onNext(o);
//     }
// 
//     public Observable<Object> toObservable() {
//         return _bus;
//     }
// 
//     public boolean hasObservers() {
//         return _bus.hasObservers();
//     }
// }


import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.adkdevelopment.earthquakesurvival.App;
import com.adkdevelopment.earthquakesurvival.R;
import com.adkdevelopment.earthquakesurvival.ui.adapters.InfoAdapter;
import com.adkdevelopment.earthquakesurvival.eventbus.RxBus;
import com.squareup.picasso.Picasso;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;
/*
 * MIT License
 *
 * Copyright (c) 2016. Dmytro Karataiev
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 */

package com.adkdevelopment.earthquakesurvival.ui;





/**
 * A placeholder fragment containing a simple view.
 */
public class InfoFragment extends Fragment {

    @BindView(R.id.recyclerview) RecyclerView mRecyclerView;
    private Unbinder mUnbinder;
// Path: app/src/main/java/com/adkdevelopment/earthquakesurvival/App.java
// public class App extends Application {
// 
//     private static ApiManager sApiManager, sNewsManager;
//     private static Context sContext;
// 
//     // event bus from RxJava
//     private static RxBus _rxBus;
// 
//     // Singleton Retrofit for Earthquakes
//     public static ApiManager getApiManager() {
//         if (sApiManager == null) {
//             try {
//                 sApiManager = new ApiManager();
//             } catch (Exception e) {
//                 e.printStackTrace();
//             }
//         }
//         return sApiManager;
//     }
// 
//     // Singleton Retrofit for News
//     public static ApiManager getNewsManager() {
//         if (sNewsManager == null) {
//             try {
//                 sNewsManager = new ApiManager();
//             } catch (Exception e) {
//                 e.printStackTrace();
//             }
//         }
//         return sNewsManager;
//     }
// 
//     // singleton RxBus
//     public static RxBus getRxBusSingleton() {
//         if (_rxBus == null) {
//             _rxBus = new RxBus();
//         }
//         return _rxBus;
//     }
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
// 
//         if (!BuildConfig.DEBUG) {
//             Fabric.with(this, new Crashlytics());
//         }
// 
//         sContext = getApplicationContext();
//     }
// 
//     public static Context getContext() {
//         return sContext;
//     }
// }
// 
// Path: app/src/main/java/com/adkdevelopment/earthquakesurvival/ui/adapters/InfoAdapter.java
// public class InfoAdapter extends RecyclerView.Adapter<InfoAdapter.ViewHolder> {
// 
//     private List<String> mTitles;
//     private List<String> mTexts;
// 
//     public InfoAdapter(List<String> title, List<String> text) {
//         super();
//         mTitles = title;
//         mTexts = text;
//     }
// 
//     public static class ViewHolder extends RecyclerView.ViewHolder {
// 
//         @BindView(R.id.info_title) TextView mTitle;
//         @BindView(R.id.info_text) TextView mText;
//         @BindView(R.id.info_card) CardView mInfoCard;
// 
//         public ViewHolder(View v)  {
//             super(v);
//             ButterKnife.bind(this, v);
//         }
//     }
// 
//     @Override
//     public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
// 
//         View v = LayoutInflater.from(parent.getContext())
//                 .inflate(R.layout.info_item_card, parent, false);
// 
//         return new ViewHolder(v);
//     }
// 
//     @Override
//     public void onBindViewHolder(ViewHolder holder, int position) {
//         holder.mTitle.setText(mTitles.get(position));
//         holder.mText.setText(Utilities.getHtmlText(mTexts.get(position)));
//         holder.mText.setMovementMethod(LinkMovementMethod.getInstance());
//     }
// 
//     @Override
//     public int getItemCount() {
//         return mTitles.size();
//     }
// }
// 
// Path: app/src/main/java/com/adkdevelopment/earthquakesurvival/eventbus/RxBus.java
// public class RxBus {
// 
//     private final Subject<Object, Object> _bus = new SerializedSubject<>(PublishSubject.create());
// 
//     public void send(Object o) {
//         _bus.onNext(o);
//     }
// 
//     public Observable<Object> toObservable() {
//         return _bus;
//     }
// 
//     public boolean hasObservers() {
//         return _bus.hasObservers();
//     }
// }


// Path: app/src/main/java/com/adkdevelopment/earthquakesurvival/ui/InfoFragment.java
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.adkdevelopment.earthquakesurvival.App;
import com.adkdevelopment.earthquakesurvival.R;
import com.adkdevelopment.earthquakesurvival.ui.adapters.InfoAdapter;
import com.adkdevelopment.earthquakesurvival.eventbus.RxBus;
import com.squareup.picasso.Picasso;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;

/*
 * MIT License
 *
 * Copyright (c) 2016. Dmytro Karataiev
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 */

package com.adkdevelopment.earthquakesurvival.ui;





/**
 * A placeholder fragment containing a simple view.
 */
public class InfoFragment extends Fragment {

    @BindView(R.id.recyclerview) RecyclerView mRecyclerView;
    private Unbinder mUnbinder;
    private RxBus _rxBus;