Bug 1132751 - Add android:logo to fennec application. r=liuche

On Android v21, this logo is a padded version of android:icon which, to
my knowledge, is only used by the ActionBar, which we only make visible in
GeckoPreferences. On < 21, this icon is used via resource alias.

--HG--
extra : rebase_source : 93722e1935fa363e527e230b5498339f93f2f911
This commit is contained in:
Michael Comella 2015-03-31 14:21:53 -07:00
Родитель 8b1165d2ea
Коммит 06900d90e0
4 изменённых файлов: 26 добавлений и 1 удалений

Просмотреть файл

@ -86,6 +86,7 @@
<application android:label="@string/moz_app_displayname"
android:icon="@drawable/icon"
android:logo="@drawable/logo"
android:name="org.mozilla.gecko.GeckoApplication"
android:hardwareAccelerated="true"
# The preprocessor does not yet support arbitrary parentheses, so this cannot

Просмотреть файл

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!-- The action bar scales the application icon to be too large (bug 1132751)
so add some padding to prevent it from scaling so much. -->
<inset
xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/icon"
android:insetTop="6dp"
android:insetBottom="6dp"
android:insetLeft="6dp"
android:insetRight="6dp"
/>

Просмотреть файл

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!-- Overidden. -->
<bitmap
xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/icon"/>

Просмотреть файл

@ -48,7 +48,7 @@
<!-- GeckoPreferences ActionBar -->
<style name="ActionBar.GeckoPreferences">
<item name="android:displayOptions">showHome|homeAsUp|showTitle</item>
<item name="android:displayOptions">showHome|homeAsUp|showTitle|useLogo</item>
</style>
<!-- TabsLayout ActionBar -->