Updated on 2026-08-14

This commit is contained in:
Tangem 2018-10-10 21:00:25 +03:00
parent ff22469cde
commit 68917838a4
7 changed files with 84 additions and 25 deletions

View file

@ -1,35 +0,0 @@
package com.tangem;
import android.app.Application;
import android.support.v7.app.AppCompatDelegate;
public class AppController extends Application {
/**
* A singleton instance of the application class for easy access in other places
*/
private static AppController sInstance;
public AppController() {
super();
}
static {
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
}
@Override
public void onCreate() {
super.onCreate();
// initialize the singleton
sInstance = this;
}
/**
* @return singleton instance
*/
public static synchronized AppController getInstance() {
return sInstance;
}
}