// Path: app/src/main/java/ayaseruri/torr/torrfm/network/RetrofitClient.java
// public class RetrofitClient {
//     public static ApiService apiService = new Retrofit.Builder()
//             .baseUrl("http://danmu.fm/")
//             .addConverterFactory(new FastJsonConverter())
//             .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
//             .build()
//             .create(ApiService.class);
//     public static OkHttpClient okHttpClient = new OkHttpClient();
// }
// 
// Path: app/src/main/java/ayaseruri/torr/torrfm/utils/LocalDisplay.java
// public class LocalDisplay {
// 
//     public static int SCREEN_WIDTH_PIXELS;
//     public static int SCREEN_HEIGHT_PIXELS;
//     public static float SCREEN_DENSITY;
//     public static int SCREEN_WIDTH_DP;
//     public static int SCREEN_HEIGHT_DP;
// 
//     public static void init(Context context) {
// 
//         DisplayMetrics dm = new DisplayMetrics();
//         WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
//         wm.getDefaultDisplay().getMetrics(dm);
//         SCREEN_WIDTH_PIXELS = dm.widthPixels;
//         SCREEN_HEIGHT_PIXELS = dm.heightPixels;
//         SCREEN_DENSITY = dm.density;
//         SCREEN_WIDTH_DP = (int) (SCREEN_WIDTH_PIXELS / dm.density);
//         SCREEN_HEIGHT_DP = (int) (SCREEN_HEIGHT_PIXELS / dm.density);
//     }
// 
//     public static int dp2px(float dp) {
//         final float scale = SCREEN_DENSITY;
//         return (int) (dp * scale + 0.5f);
//     }
// 
//     public static int designedDP2px(float designedDp) {
//         if (SCREEN_WIDTH_DP != 320) {
//             designedDp = designedDp * SCREEN_WIDTH_DP / 320f;
//         }
//         return dp2px(designedDp);
//     }
// 
//     public static void setPadding(final View view, float left, float top, float right, float bottom) {
//         view.setPadding(designedDP2px(left), dp2px(top), designedDP2px(right), dp2px(bottom));
//     }
// }


import android.app.Application;
import android.content.res.Resources;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.facebook.imagepipeline.core.ImagePipelineConfig;
import org.androidannotations.annotations.EApplication;
import ayaseruri.torr.torrfm.network.RetrofitClient;
import ayaseruri.torr.torrfm.utils.LocalDisplay;
package ayaseruri.torr.torrfm.global;





/**
 * Created by ayaseruri on 15/12/11.
 */
@EApplication
public class MApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        Fresco.initialize(this);
// Path: app/src/main/java/ayaseruri/torr/torrfm/network/RetrofitClient.java
// public class RetrofitClient {
//     public static ApiService apiService = new Retrofit.Builder()
//             .baseUrl("http://danmu.fm/")
//             .addConverterFactory(new FastJsonConverter())
//             .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
//             .build()
//             .create(ApiService.class);
//     public static OkHttpClient okHttpClient = new OkHttpClient();
// }
// 
// Path: app/src/main/java/ayaseruri/torr/torrfm/utils/LocalDisplay.java
// public class LocalDisplay {
// 
//     public static int SCREEN_WIDTH_PIXELS;
//     public static int SCREEN_HEIGHT_PIXELS;
//     public static float SCREEN_DENSITY;
//     public static int SCREEN_WIDTH_DP;
//     public static int SCREEN_HEIGHT_DP;
// 
//     public static void init(Context context) {
// 
//         DisplayMetrics dm = new DisplayMetrics();
//         WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
//         wm.getDefaultDisplay().getMetrics(dm);
//         SCREEN_WIDTH_PIXELS = dm.widthPixels;
//         SCREEN_HEIGHT_PIXELS = dm.heightPixels;
//         SCREEN_DENSITY = dm.density;
//         SCREEN_WIDTH_DP = (int) (SCREEN_WIDTH_PIXELS / dm.density);
//         SCREEN_HEIGHT_DP = (int) (SCREEN_HEIGHT_PIXELS / dm.density);
//     }
// 
//     public static int dp2px(float dp) {
//         final float scale = SCREEN_DENSITY;
//         return (int) (dp * scale + 0.5f);
//     }
// 
//     public static int designedDP2px(float designedDp) {
//         if (SCREEN_WIDTH_DP != 320) {
//             designedDp = designedDp * SCREEN_WIDTH_DP / 320f;
//         }
//         return dp2px(designedDp);
//     }
// 
//     public static void setPadding(final View view, float left, float top, float right, float bottom) {
//         view.setPadding(designedDP2px(left), dp2px(top), designedDP2px(right), dp2px(bottom));
//     }
// }


// Path: app/src/main/java/ayaseruri/torr/torrfm/global/MApplication.java
import android.app.Application;
import android.content.res.Resources;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.facebook.imagepipeline.core.ImagePipelineConfig;
import org.androidannotations.annotations.EApplication;
import ayaseruri.torr.torrfm.network.RetrofitClient;
import ayaseruri.torr.torrfm.utils.LocalDisplay;

package ayaseruri.torr.torrfm.global;





/**
 * Created by ayaseruri on 15/12/11.
 */
@EApplication
public class MApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        Fresco.initialize(this);
        LocalDisplay.init(this);