导航菜单

页面标题

页面副标题

Delta Chat v1.58.3 - LocalHelpActivity.java 源代码

正在查看: Delta Chat v1.58.3 应用的 LocalHelpActivity.java JAVA 源代码文件

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


package org.thoughtcrime.securesms;

import android.view.Menu;
import android.view.MenuItem;

public class LocalHelpActivity extends WebViewActivity {
    public static final String SECTION_EXTRA = "section_extra";

    @Override
    protected boolean allowInLockedMode() {
        return true;
    }

    @Override
    protected void onCreate(android.os.Bundle r7, boolean r8) {
        throw new UnsupportedOperationException("Method not decompiled: org.thoughtcrime.securesms.LocalHelpActivity.onCreate(android.os.Bundle, boolean):void");
    }

    @Override
    public boolean onPrepareOptionsMenu(Menu menu) {
        super.onPrepareOptionsMenu(menu);
        getMenuInflater().inflate(R.menu.local_help, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem menuItem) {
        super.onOptionsItemSelected(menuItem);
        int itemId = menuItem.getItemId();
        if (itemId == R.id.log_scroll_up) {
            this.webView.scrollTo(0, 0);
            return true;
        }
        if (itemId == R.id.learn_more) {
            openOnlineUrl("https://delta.chat");
            return true;
        }
        if (itemId == R.id.privacy_policy) {
            openOnlineUrl("https://delta.chat/gdpr");
            return true;
        }
        if (itemId == R.id.contribute) {
            openOnlineUrl("https://delta.chat/contribute");
            return true;
        }
        if (itemId != R.id.report_issue) {
            return false;
        }
        openOnlineUrl("https://github.com/deltachat/deltachat-android/issues");
        return true;
    }

    public void onBackPressed() {
        if (this.webView.canGoBack()) {
            this.webView.goBack();
        } else {
            super.onBackPressed();
        }
    }

    private boolean assetExists(String str) {
        boolean z = false;
        try {
            z = true;
            getResources().getAssets().open(str).close();
            return true;
        } catch (Exception unused) {
            return z;
        }
    }
}