Skip to content

Commit

Permalink
Fix #10093: remove the configureView() in ThemeWebActivity and preven…
Browse files Browse the repository at this point in the history
…t overriding
  • Loading branch information
maxme committed Jun 25, 2019
1 parent 00bdc21 commit eee8de8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 28 deletions.
1 change: 1 addition & 0 deletions WordPress/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@
<activity
android:name=".ui.themes.ThemeWebActivity"
android:label="@string/selected_theme"
android:theme="@style/Calypso.NoActionBar"
android:parentActivityName=".ui.themes.ThemeBrowserActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public void onCreate(Bundle savedInstanceState) {
}

@Override
public void configureView() {
public final void configureView() {
setContentView(R.layout.wpwebview_activity);

mActionableEmptyView = findViewById(R.id.actionable_empty_view);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.Menu;
import android.view.MenuItem;
Expand Down Expand Up @@ -36,6 +37,11 @@ enum ThemeWebActivityType {
SUPPORT
}

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

public static String getSiteLoginUrl(SiteModel site) {
if (site.isJetpackConnected()) {
return WPCOM_LOGIN_URL;
Expand Down Expand Up @@ -137,12 +143,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
return super.onOptionsItemSelected(item);
}

@Override
public void configureView() {
setContentView(R.layout.theme_web_activity);
setActionBarTitleToThemeName();
}

private void setActionBarTitleToThemeName() {
String themeName = getIntent().getStringExtra(THEME_NAME);
if (getSupportActionBar() != null && themeName != null) {
Expand Down
21 changes: 0 additions & 21 deletions WordPress/src/main/res/layout/theme_web_activity.xml

This file was deleted.

0 comments on commit eee8de8

Please sign in to comment.