Search in sources :

Example 1 with UtilitiesProvider

use of com.amaze.filemanager.utils.provider.UtilitiesProvider in project AmazeFileManager by TeamAmaze.

the class AppConfig method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    // selector in srcCompat isn't supported without this
    AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
    mInstance = this;
    utilsProvider = new UtilitiesProvider(this);
    mUtilsHandler = new UtilsHandler(this);
    sBackgroundHandlerThread.start();
    sBackgroundHandler = new Handler(sBackgroundHandlerThread.getLooper());
    // disabling file exposure method check for api n+
    StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
    StrictMode.setVmPolicy(builder.build());
}
Also used : StrictMode(android.os.StrictMode) UtilitiesProvider(com.amaze.filemanager.utils.provider.UtilitiesProvider) UtilsHandler(com.amaze.filemanager.database.UtilsHandler) Handler(android.os.Handler) UtilsHandler(com.amaze.filemanager.database.UtilsHandler)

Aggregations

Handler (android.os.Handler)1 StrictMode (android.os.StrictMode)1 UtilsHandler (com.amaze.filemanager.database.UtilsHandler)1 UtilitiesProvider (com.amaze.filemanager.utils.provider.UtilitiesProvider)1