@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    if (AppConfiguration.getInstance(this)
        .iconTheme
        .equalsIgnoreCase(NameConstant.ICON_THEME_LIGHT)) {
      setTheme(R.style.AppTheme);
    } else {
      setTheme(R.style.AppThemeLight);
    }
    setContentView(R.layout.activity_drawer);

    context = this;
    toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);
    if (getPackageName().equalsIgnoreCase("com.applop")) {
      if (User.getInstance(this).loginType.equalsIgnoreCase("")) {
        Intent intent = new Intent(context, SignInActivity.class);
        startActivityForResult(intent, NameConstant.REQUEST_CODE_BACK_FROM_SIGN_IN);
      }
    }
    Helper.setToolbarColor(this);
    storyAdapter = new StoryAdapter(stories, this);
    loadResources();
    setSideDrawer();
    try {
      String categoryName = "Application";
      String label = "Opened";
      String action = "Opened";
      AnalyticsHelper.trackEvent(categoryName, action, label, this);
    } catch (Exception e) {
      e.printStackTrace();
    }
    try {
      String pageviews = "Home Page";
      AnalyticsHelper.trackPageView(pageviews, this);
    } catch (Exception e) {
      e.printStackTrace();
    }
    setads();
    // show alert if exist
    String alertMessage = getIntent().getStringExtra("alert_message");
    if (alertMessage != null)
      if (!alertMessage.equalsIgnoreCase("")) Helper.showAlertFeedNotification(this, alertMessage);
    return;
  }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    if (AppConfiguration.getInstance(this)
        .iconTheme
        .equalsIgnoreCase(NameConstant.ICON_THEME_LIGHT)) {
      setTheme(R.style.AppTheme);
    } else {
      setTheme(R.style.AppThemeLight);
    }
    context = this;
    setContentView(R.layout.activity_enquiry_mail);
    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);
    Helper.setToolbarColor(this);
    user = User.getInstance(this);
    getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    getSupportActionBar().setHomeButtonEnabled(true);
    getSupportActionBar().setTitle("Enquiry");

    loadResources();
  }