INNER CODE UNIT · Java

run

junixapp/XPopup · app/src/main/java/com/lxj/xpopupdemo/DemoActivity.java:124

            public void run() {
                if (fragmentLifecycleDemo==null) return;
                getSupportFragmentManager().beginTransaction().remove(fragmentLifecycleDemo)
                        .commitNow();
                fragmentLifecycleDemo = null;
            }
        }, 3000);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        handler.removeCallbacksAndMessages(null);
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…