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 24, 2019
1 parent 47f36b2 commit 96deb63
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 @@ -115,7 +115,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 @@ -38,6 +39,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 @@ -149,12 +155,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 96deb63

Please sign in to comment.