// Path: app/src/main/java/discovery/contentful/utils/IntentConsts.java
// public class IntentConsts {
//   private IntentConsts() {
//   }
// 
//   public static final String PACKAGE_NAME = CFApp.getInstance().getPackageName();
// 
//   public static final String EXTRA_SPACE = PACKAGE_NAME + ".EXTRA_SPACE";
//   public static final String EXTRA_CREDENTIALS = PACKAGE_NAME + ".EXTRA_CREDENTIALS";
//   public static final String EXTRA_CONTENT_TYPE = PACKAGE_NAME + ".EXTRA_CONTENT_TYPE";
//   public static final String EXTRA_ENTRY = PACKAGE_NAME + ".EXTRA_ENTRY";
//   public static final String EXTRA_ASSET = PACKAGE_NAME + ".EXTRA_ASSET";
//   public static final String EXTRA_TEXT = PACKAGE_NAME + ".EXTRA_TEXT";
//   public static final String EXTRA_LOCATION = PACKAGE_NAME + ".EXTRA_LOCATION";
//   public static final String EXTRA_TITLE = PACKAGE_NAME + ".EXTRA_TITLE";
//   public static final String EXTRA_LIST = PACKAGE_NAME + ".EXTRA_LIST";
//   public static final String EXTRA_URL = PACKAGE_NAME + ".EXTRA_URL";
//   public static final String EXTRA_ALLOW_LINKS = PACKAGE_NAME + ".EXTRA_ALLOW_LINKS";
//   public static final String EXTRA_CONTENT_TYPES_MAP = PACKAGE_NAME + ".EXTRA_CONTENT_TYPES_MAP";
// 
//   /**
//    * DBIntentService
//    */
//   public static class DB {
//     public static final String ACTION_SAVE_CREDENTIALS = PACKAGE_NAME + ".ACTION_SAVE_CREDENTIALS";
//   }
// }


import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import butterknife.Bind;
import butterknife.ButterKnife;
import discovery.contentful.R;
import discovery.contentful.utils.IntentConsts;
package discovery.contentful.activities;


public class WebActivity extends CFFragmentActivity {
  @Bind(R.id.web_view) WebView webView;
  @Bind(R.id.empty) View emptyView;

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

    setContentView(R.layout.activity_web);

    // Inject views
    ButterKnife.bind(this);

    webView.setWebViewClient(new WebViewClient() {
      @Override
      public void onPageFinished(WebView view, String url) {
        super.onPageFinished(view, url);

        emptyView.setVisibility(View.GONE);
      }
    });

// Path: app/src/main/java/discovery/contentful/utils/IntentConsts.java
// public class IntentConsts {
//   private IntentConsts() {
//   }
// 
//   public static final String PACKAGE_NAME = CFApp.getInstance().getPackageName();
// 
//   public static final String EXTRA_SPACE = PACKAGE_NAME + ".EXTRA_SPACE";
//   public static final String EXTRA_CREDENTIALS = PACKAGE_NAME + ".EXTRA_CREDENTIALS";
//   public static final String EXTRA_CONTENT_TYPE = PACKAGE_NAME + ".EXTRA_CONTENT_TYPE";
//   public static final String EXTRA_ENTRY = PACKAGE_NAME + ".EXTRA_ENTRY";
//   public static final String EXTRA_ASSET = PACKAGE_NAME + ".EXTRA_ASSET";
//   public static final String EXTRA_TEXT = PACKAGE_NAME + ".EXTRA_TEXT";
//   public static final String EXTRA_LOCATION = PACKAGE_NAME + ".EXTRA_LOCATION";
//   public static final String EXTRA_TITLE = PACKAGE_NAME + ".EXTRA_TITLE";
//   public static final String EXTRA_LIST = PACKAGE_NAME + ".EXTRA_LIST";
//   public static final String EXTRA_URL = PACKAGE_NAME + ".EXTRA_URL";
//   public static final String EXTRA_ALLOW_LINKS = PACKAGE_NAME + ".EXTRA_ALLOW_LINKS";
//   public static final String EXTRA_CONTENT_TYPES_MAP = PACKAGE_NAME + ".EXTRA_CONTENT_TYPES_MAP";
// 
//   /**
//    * DBIntentService
//    */
//   public static class DB {
//     public static final String ACTION_SAVE_CREDENTIALS = PACKAGE_NAME + ".ACTION_SAVE_CREDENTIALS";
//   }
// }


// Path: app/src/main/java/discovery/contentful/activities/WebActivity.java
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import butterknife.Bind;
import butterknife.ButterKnife;
import discovery.contentful.R;
import discovery.contentful.utils.IntentConsts;

package discovery.contentful.activities;


public class WebActivity extends CFFragmentActivity {
  @Bind(R.id.web_view) WebView webView;
  @Bind(R.id.empty) View emptyView;

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

    setContentView(R.layout.activity_web);

    // Inject views
    ButterKnife.bind(this);

    webView.setWebViewClient(new WebViewClient() {
      @Override
      public void onPageFinished(WebView view, String url) {
        super.onPageFinished(view, url);

        emptyView.setVisibility(View.GONE);
      }
    });

    webView.loadUrl(getIntent().getStringExtra(IntentConsts.EXTRA_URL));