package com.texasgamer.zephyr.activity;

import android.os.Bundle;
import android.view.MenuItem;
import android.webkit.WebView;

import com.texasgamer.zephyr.BuildConfig;
import com.texasgamer.zephyr.R;
import com.texasgamer.zephyr.ZephyrApplication;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.Toolbar;
import butterknife.BindView;

/**
 * Open source licenses activity.
 */
public class LicensesActivity extends BaseActivity {

    @BindView(R.id.toolbar)
    Toolbar mToolbar;
    @BindView(R.id.licenses_webview)
    WebView mWebView;

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setSupportActionBar(mToolbar);

        mWebView.loadUrl("file:///android_asset/open_source_licenses.html");
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case android.R.id.home:
                onBackPressed();
                return true;
            default:
                return super.onOptionsItemSelected(item);
        }
    }

    @Override
    protected int getLayoutResource() {
        return R.layout.activity_licenses;
    }

    @Override
    protected void injectDependencies() {
        ZephyrApplication.getApplicationComponent().inject(this);
    }

    @NonNull
    private String capitalizeFirstLetter(@NonNull String original) {
        return original.length() == 0 ? original : original.substring(0, 1).toUpperCase() + original.substring(1);
    }
}

@@ -126,131 +126,8 @@
 w;%0A%0A
-import com.texasgamer.zephyr.BuildConfig;%0Aimport com.texasgamer.zephyr.R;%0Aimport com.texasgamer.zephyr.ZephyrApplication;%0A%0A
 impo
@@ -237,16 +237,98 @@
 oolbar;%0A
+%0Aimport com.texasgamer.zephyr.R;%0Aimport com.texasgamer.zephyr.ZephyrApplication;%0A%0A
 import b
@@ -1339,211 +1339,7 @@
    %7D
-%0A%0A    @NonNull%0A    private String capitalizeFirstLetter(@NonNull String original) %7B%0A        return original.length() == 0 ? original : original.substring(0, 1).toUpperCase() + original.substring(1);%0A    %7D
 %0A%7D%0A

Fix checkstyle