Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
Fixes #37
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikbosch committed Jun 2, 2016
1 parent 5cd70a8 commit bdab772
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/plugin_hooks/android_before_compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ function copyAndroidFiles() {

module.exports = function (context) {
var fs = require('fs');

// Do not allow theme with no action bar
var dest = path.join(__dirname, '../../../../platforms/android/AndroidManifest.xml');
var manifest = fs.readFileSync(dest, 'utf8');
manifest = manifest.replace('android:theme="@android:style/Theme.DeviceDefault.NoActionBar"', '');
fs.writeFileSync(dest, manifest);

// Make sure the dependencies are installed
try {
Expand Down

0 comments on commit bdab772

Please sign in to comment.