导航菜单

页面标题

页面副标题

OLX India v19.42.007 - WebViewActivity.java 源代码

正在查看: OLX India v19.42.007 应用的 WebViewActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package olx.com.delorean.view.webview;

import android.os.Bundle;
import com.olx.southasia.p;
import olx.com.delorean.domain.Constants;
import olx.com.delorean.domain.utils.TextUtils;

public class WebViewActivity extends e {
    protected WebViewFragment i0;

    protected void e3() {
        super.e3();
        String string = getIntent().getExtras() != null ? getIntent().getExtras().getString("title") : null;
        if (TextUtils.isEmpty(string)) {
            string = getString(p.help_title);
        }
        M2().setTitle(string);
    }

    protected WebViewFragment o3() {
        WebViewFragment webViewFragment = new WebViewFragment();
        webViewFragment.setArguments(getIntent().getExtras());
        return webViewFragment;
    }

    public void onBackPressed() {
        WebViewFragment webViewFragment = this.i0;
        if (webViewFragment == null || !webViewFragment.isAdded() || this.i0.h5() == null || !this.i0.h5().canGoBack()) {
            super.onBackPressed();
        } else {
            this.i0.h5().goBack();
        }
    }

    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        if (bundle == null) {
            n3(true);
            WebViewFragment o3 = o3();
            this.i0 = o3;
            b3(o3, true);
        }
    }

    public boolean onSupportNavigateUp() {
        if (getIntent().getBooleanExtra(Constants.ExtraKeys.CLOSE_ON_BACK, false)) {
            super.onBackPressed();
            return true;
        }
        onBackPressed();
        return true;
    }
}