// Path: app/src/main/java/de/devland/masterpassword/base/BaseApp.java
// public class BaseApp extends SugarApp {
// 
//     private static BaseApp instance;
// 
//     private Bus bus;
//     private BaseActivity currentForegroundActivity;
// 
//     public static BaseApp getInstance() {
//         return BaseApp.instance;
//     }
// 
//     public void onCreate() {
//         super.onCreate();
//         instance = this;
//         bus = new Bus(ThreadEnforcer.ANY);
//     }
// 
//     public static BaseApp get() {
//         return instance;
//     }
// 
//     public Bus getBus() {
//         return this.bus;
//     }
// 
//     public BaseActivity getCurrentForegroundActivity() {
//         return this.currentForegroundActivity;
//     }
// 
//     public void setCurrentForegroundActivity(BaseActivity currentForegroundActivity) {
//         this.currentForegroundActivity = currentForegroundActivity;
//     }
// }
// 
// Path: app/src/main/java/de/devland/masterpassword/base/prefs/InternalPrefs.java
// @SharedPreferences(name = "InternalPrefs")
// public interface InternalPrefs {
//     int requestCodeSeed();
//     void requestCodeSeed(int seed);
// }


import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import de.devland.esperandro.Esperandro;
import de.devland.masterpassword.base.BaseApp;
import de.devland.masterpassword.base.prefs.InternalPrefs;
package de.devland.masterpassword.base.util;




/**
 * Created by David Kunzler on 23.10.2014.
 */
public enum RequestCodeManager {
    INSTANCE;

    protected Map<Integer, RequestCodeCallback> callbacks;
    protected Map<Integer, Bundle> callbackData;
    protected InternalPrefs internalPrefs;

    RequestCodeManager() {
        callbackData = new HashMap<>();
        callbacks = new HashMap<>();
// Path: app/src/main/java/de/devland/masterpassword/base/BaseApp.java
// public class BaseApp extends SugarApp {
// 
//     private static BaseApp instance;
// 
//     private Bus bus;
//     private BaseActivity currentForegroundActivity;
// 
//     public static BaseApp getInstance() {
//         return BaseApp.instance;
//     }
// 
//     public void onCreate() {
//         super.onCreate();
//         instance = this;
//         bus = new Bus(ThreadEnforcer.ANY);
//     }
// 
//     public static BaseApp get() {
//         return instance;
//     }
// 
//     public Bus getBus() {
//         return this.bus;
//     }
// 
//     public BaseActivity getCurrentForegroundActivity() {
//         return this.currentForegroundActivity;
//     }
// 
//     public void setCurrentForegroundActivity(BaseActivity currentForegroundActivity) {
//         this.currentForegroundActivity = currentForegroundActivity;
//     }
// }
// 
// Path: app/src/main/java/de/devland/masterpassword/base/prefs/InternalPrefs.java
// @SharedPreferences(name = "InternalPrefs")
// public interface InternalPrefs {
//     int requestCodeSeed();
//     void requestCodeSeed(int seed);
// }


// Path: app/src/main/java/de/devland/masterpassword/base/util/RequestCodeManager.java
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import de.devland.esperandro.Esperandro;
import de.devland.masterpassword.base.BaseApp;
import de.devland.masterpassword.base.prefs.InternalPrefs;

package de.devland.masterpassword.base.util;




/**
 * Created by David Kunzler on 23.10.2014.
 */
public enum RequestCodeManager {
    INSTANCE;

    protected Map<Integer, RequestCodeCallback> callbacks;
    protected Map<Integer, Bundle> callbackData;
    protected InternalPrefs internalPrefs;

    RequestCodeManager() {
        callbackData = new HashMap<>();
        callbacks = new HashMap<>();
        internalPrefs = Esperandro.getPreferences(InternalPrefs.class, BaseApp.get());