Code example for Activity

Methods: finish

0
 
    private static void refuse(Activity activity) {
        if (activity instanceof EulaCallback) {
            ((EulaCallback)activity).eulaRefused();
        } 
        activity.finish();
    } 
 
    public static interface EulaCallback { 
        public void eulaAccepted(); 
        public void eulaRefused(); 
    } 
 
    private Eula() { 
        // don't construct me 
        DependencyInjectionService.getInstance().inject(this);
    } 
}