import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
public class GuideTabFragment extends Fragment {
// `tabNumber` is used in `onCreate()` and `onCreateView()`.
public class GuideTabFragment extends Fragment {
// `tabNumber` is used in `onCreate()` and `onCreateView()`.
// Setting false at the end of inflater.inflate does not attach the inflated layout as a child of container. The fragment will take care of attaching the root automatically.
View tabLayout = inflater.inflate(R.layout.bare_webview, container, false);
// Setting false at the end of inflater.inflate does not attach the inflated layout as a child of container. The fragment will take care of attaching the root automatically.
View tabLayout = inflater.inflate(R.layout.bare_webview, container, false);
- if (MainWebViewActivity.darkTheme) { // The dark theme is applied.
- // Set the background color. We have to use the deprecated `.getColor()` until API >= 23.
- //noinspection deprecation
+ if (currentThemeStatus == Configuration.UI_MODE_NIGHT_YES) { // The dark theme is applied.