package com.huetoyou.chatexchange.ui.activity;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.support.v4.content.LocalBroadcastManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.Button;
import android.widget.FrameLayout;

import com.huetoyou.chatexchange.R;
import com.huetoyou.chatexchange.ui.misc.CustomWebView;

import org.jsoup.Jsoup;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class WebViewActivity extends AppCompatActivity
{

    private String mURL;

    @SuppressLint("SetJavaScriptEnabled")
    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.fragment_star_webview);
        Intent intent = getIntent();

        //noinspection ConstantConditions
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);

        if (intent.getAction().equals(Intent.ACTION_VIEW))
        {
            mURL = intent.getStringExtra("url");
        }

        FrameLayout parent = findViewById(R.id.webview_parent);
        parent.setPadding(0, 0, 0, 0);

        final WebView webView = findViewById(R.id.stars_view);

        CustomWebView customWebView = new CustomWebView(this, parent, webView, true);
        customWebView.loadUrl(mURL);
    }

    @Override
    public void onBackPressed()
    {
        super.onBackPressed();
    }

    @Override
    public boolean onSupportNavigateUp()
    {
        onBackPressed();
        return super.onSupportNavigateUp();
    }
}

@@ -495,16 +495,130 @@
 WebView;
+%0Aimport com.huetoyou.chatexchange.ui.misc.hue.ActionBarHue;%0Aimport com.huetoyou.chatexchange.ui.misc.hue.ThemeHue;
 %0A%0Aimport
@@ -894,32 +894,81 @@
 nceState)%0A    %7B%0A
+        ThemeHue.setTheme(WebViewActivity.this);%0A
         super.on
@@ -1132,16 +1132,16 @@
 ditions%0A
-
         
@@ -1194,16 +1194,96 @@
 d(true);
+%0A        ActionBarHue.setActionBarColorToSharedPrefsValue(WebViewActivity.this);
 %0A%0A      

Make starview respect theme and color settings