зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1276696 - Put custom tabs support behind a build flag. r=mcomella
MozReview-Commit-ID: 44wtCsZWZv2 --HG-- extra : rebase_source : 2ab062e4f5155225d6f5fcd686cd7a0b974679f1
This commit is contained in:
Родитель
2e5288b993
Коммит
42d21c59e5
|
@ -294,8 +294,10 @@
|
|||
|
||||
</activity>
|
||||
|
||||
#ifdef MOZ_ANDROID_CUSTOM_TABS
|
||||
<activity android:name="org.mozilla.gecko.customtabs.CustomTabsActivity"
|
||||
android:theme="@style/Theme.AppCompat.NoActionBar" />
|
||||
#endif
|
||||
|
||||
<!-- Service to handle requests from overlays. -->
|
||||
<service android:name="org.mozilla.gecko.overlays.service.OverlayActionService" />
|
||||
|
@ -382,6 +384,7 @@
|
|||
android:name="org.mozilla.gecko.telemetry.TelemetryUploadService"
|
||||
android:exported="false"/>
|
||||
|
||||
#ifdef MOZ_ANDROID_CUSTOM_TABS
|
||||
<service
|
||||
android:name="org.mozilla.gecko.customtabs.GeckoCustomTabsService"
|
||||
android:exported="true">
|
||||
|
@ -389,6 +392,7 @@
|
|||
<action android:name="android.support.customtabs.action.CustomTabsService" />
|
||||
</intent-filter>
|
||||
</service>
|
||||
#endif
|
||||
|
||||
#include ../services/manifests/FxAccountAndroidManifest_services.xml.in
|
||||
|
||||
|
|
|
@ -334,6 +334,13 @@ public class AppConstants {
|
|||
false;
|
||||
//#endif
|
||||
|
||||
public static final boolean MOZ_ANDROID_CUSTOM_TABS =
|
||||
//#ifdef MOZ_ANDROID_CUSTOM_TABS
|
||||
true;
|
||||
//#else
|
||||
false;
|
||||
//#endif
|
||||
|
||||
// (bug 1266820) Temporarily disabled since no one is working on it.
|
||||
public static final boolean SCREENSHOTS_IN_BOOKMARKS_ENABLED = false;
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ public class LauncherActivity extends Activity {
|
|||
|
||||
GeckoAppShell.ensureCrashHandling();
|
||||
|
||||
if (isCustomTabsIntent()) {
|
||||
if (AppConstants.MOZ_ANDROID_CUSTOM_TABS && isCustomTabsIntent()) {
|
||||
dispatchCustomTabsIntent();
|
||||
} else if (isViewIntentWithURL()) {
|
||||
dispatchViewIntent();
|
||||
|
|
|
@ -960,7 +960,7 @@ for var in ('MOZ_ANDROID_ANR_REPORTER', 'MOZ_LINKER_EXTRACT', 'MOZ_DEBUG',
|
|||
'MOZ_ANDROID_DOWNLOADS_INTEGRATION', 'MOZ_INSTALL_TRACKING',
|
||||
'MOZ_ANDROID_GCM', 'MOZ_ANDROID_EXCLUDE_FONTS', 'MOZ_LOCALE_SWITCHER',
|
||||
'MOZ_ANDROID_BEAM', 'MOZ_ANDROID_DOWNLOAD_CONTENT_SERVICE',
|
||||
'MOZ_SWITCHBOARD'):
|
||||
'MOZ_SWITCHBOARD', 'MOZ_ANDROID_CUSTOM_TABS'):
|
||||
if CONFIG[var]:
|
||||
DEFINES[var] = 1
|
||||
|
||||
|
|
|
@ -37,6 +37,10 @@ project_flag('MOZ_ANDROID_DOWNLOAD_CONTENT_SERVICE',
|
|||
help='Background service for downloading additional content at runtime',
|
||||
default=True)
|
||||
|
||||
project_flag('MOZ_ANDROID_CUSTOM_TABS',
|
||||
help='Enable support for Android custom tabs',
|
||||
default=False)
|
||||
|
||||
# Enable the Switchboard A/B framework code.
|
||||
# Note: The framework is always included in the app. This flag controls
|
||||
# usage of the framework.
|
||||
|
|
Загрузка…
Ссылка в новой задаче