All streams
Search
Write a publication
Pull to refresh
0
0
Send message

А что гугловый Puppeteer уже не в моде?

public class AsmykApplicationContext extends Application {
    
    ...
    private Activity currentActivity;
    
    ...
    /**
     * Internal method
     *
     * @param currentActivity
     */
    protected synchronized void setCurrentActivity(AsmykCompatActivity currentActivity) {
        this.currentActivity = currentActivity;
        executeUITasks();
    }

    /**
     * Get current activity
     *
     * @return
     */
    public synchronized Activity getCurrentActivity() {
        return currentActivity;
    }
}


Не делайте так
Добавил бы еще в минусы проблемы с костылями имплементации Parcelable интерфейса

Information

Rating
Does not participate
Location
Сеул, Seoul, Южная Корея
Registered
Activity