зеркало из https://github.com/mozilla/gecko-dev.git
Bug 802946 - Cleanup the 'Hide Apps/Promo' mess [backout the preprocessor code] r=blassey a=lsblakk
--HG-- rename : mobile/android/base/AboutHomeContent.java.in => mobile/android/base/AboutHomeContent.java
This commit is contained in:
Родитель
25505cdb62
Коммит
223606a630
|
@ -227,19 +227,6 @@ public class AboutHomeContent extends ScrollView
|
|||
if (syncIsSetup && type == AboutHomePromoBox.Type.SYNC)
|
||||
type = AboutHomePromoBox.Type.APPS;
|
||||
|
||||
// Remove the Apps promo from Beta and Release until we get go-ahead from Marketplace team.
|
||||
// Two blocks are silly, but the preprocessor does not support complex expressions and I
|
||||
// am not trying to make something elegant here. This code should disappear soon or the
|
||||
// entire feature should be removed.
|
||||
#if MOZ_UPDATE_CHANNEL == beta
|
||||
if (type == AboutHomePromoBox.Type.APPS)
|
||||
type = (syncIsSetup ? AboutHomePromoBox.Type.NONE : AboutHomePromoBox.Type.SYNC);
|
||||
#endif
|
||||
#if MOZ_UPDATE_CHANNEL == release
|
||||
if (type == AboutHomePromoBox.Type.APPS)
|
||||
type = (syncIsSetup ? AboutHomePromoBox.Type.NONE : AboutHomePromoBox.Type.SYNC);
|
||||
#endif
|
||||
|
||||
mPromoBox.show(type);
|
||||
}
|
||||
|
|
@ -35,6 +35,7 @@ UTIL_JAVA_FILES := \
|
|||
$(NULL)
|
||||
|
||||
FENNEC_JAVA_FILES = \
|
||||
AboutHomeContent.java \
|
||||
AboutHomePromoBox.java \
|
||||
AboutHomeSection.java \
|
||||
ActivityHandlerHelper.java \
|
||||
|
@ -183,7 +184,6 @@ endif
|
|||
|
||||
FENNEC_PP_JAVA_FILES = \
|
||||
App.java \
|
||||
AboutHomeContent.java \
|
||||
MarketplaceApp.java \
|
||||
WebApp.java \
|
||||
WebApps.java \
|
||||
|
|
|
@ -49,14 +49,9 @@
|
|||
android:icon="@drawable/ic_menu_addons"
|
||||
android:title="@string/addons"/>
|
||||
|
||||
#if MOZ_UPDATE_CHANNEL != beta
|
||||
#if MOZ_UPDATE_CHANNEL != release
|
||||
<item android:id="@+id/apps"
|
||||
android:icon="@drawable/ic_menu_apps"
|
||||
android:title="@string/apps"/>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
</menu>
|
||||
|
||||
</item>
|
||||
|
|
|
@ -50,14 +50,9 @@
|
|||
android:icon="@drawable/ic_menu_addons"
|
||||
android:title="@string/addons"/>
|
||||
|
||||
#if MOZ_UPDATE_CHANNEL != beta
|
||||
#if MOZ_UPDATE_CHANNEL != release
|
||||
<item android:id="@+id/apps"
|
||||
android:icon="@drawable/ic_menu_apps"
|
||||
android:title="@string/apps"/>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
</menu>
|
||||
|
||||
</item>
|
||||
|
|
|
@ -50,14 +50,9 @@
|
|||
android:icon="@drawable/ic_menu_addons"
|
||||
android:title="@string/addons"/>
|
||||
|
||||
#if MOZ_UPDATE_CHANNEL != beta
|
||||
#if MOZ_UPDATE_CHANNEL != release
|
||||
<item android:id="@+id/apps"
|
||||
android:icon="@drawable/ic_menu_apps"
|
||||
android:title="@string/apps"/>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
</menu>
|
||||
|
||||
</item>
|
||||
|
|
|
@ -38,12 +38,8 @@
|
|||
<item android:id="@+id/downloads"
|
||||
android:title="@string/downloads"/>
|
||||
|
||||
#if MOZ_UPDATE_CHANNEL != beta
|
||||
#if MOZ_UPDATE_CHANNEL != release
|
||||
<item android:id="@+id/apps"
|
||||
android:title="@string/apps"/>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
<item android:id="@+id/char_encoding"
|
||||
android:visible="false"
|
||||
|
|
Загрузка…
Ссылка в новой задаче