Skip to content

Commit

Permalink
chore(android): update TIMOB-27714 based on feedback
Browse files Browse the repository at this point in the history
- Removed "app:popupTheme" from toolbar layouts so it would respect app theme.
  • Loading branch information
jquick-axway authored and sgtcoolguy committed Sep 28, 2020
1 parent bd07428 commit c57a11f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
7 changes: 2 additions & 5 deletions android/cli/commands/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -3422,11 +3422,8 @@ AndroidBuilder.prototype.generateTheme = async function generateTheme() {
let customizableParentThemeName = this.defaultAppThemeName;
if (this.customAndroidManifest) {
const appTheme = this.customAndroidManifest.getAppAttribute('android:theme');
if (appTheme) {
const appThemeWithoutPrefix = appTheme.replace('@style/', '');
if (!appThemeWithoutPrefix.startsWith('Theme.Titanium') && !appThemeWithoutPrefix.startsWith('Base.Theme.Titanium')) {
customizableParentThemeName = appTheme;
}
if (appTheme && !appTheme.startsWith('@style/Theme.Titanium') && !appTheme.startsWith('@style/Base.Theme.Titanium')) {
customizableParentThemeName = appTheme;
}
}

Expand Down
3 changes: 1 addition & 2 deletions android/modules/ui/res/layout/titanium_ui_drawer_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:minHeight="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/ThemeOverlay.MaterialComponents.Light"/>
android:background="?attr/colorPrimary"/>

<org.appcelerator.titanium.view.TiCompositeLayout
android:layout_width="match_parent"
Expand Down
1 change: 0 additions & 1 deletion android/modules/ui/res/layout/titanium_ui_toolbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@
android:layout_width="match_parent"
android:minHeight="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/ThemeOverlay.MaterialComponents.Light"
android:fitsSystemWindows="true"/>

0 comments on commit c57a11f

Please sign in to comment.