mobile/android/services/manifests/SyncAndroidManifest_activities.xml.in
author Richard Newman <rnewman@mozilla.com>
Fri, 02 May 2014 14:01:24 -0700
changeset 181831 f1090026382e21d200553d62939396fc8aa736b9
parent 179098 661f96cbf4cef409e3805d3dc29a418d62b87204
permissions -rw-r--r--
Bug 1005074 - Part 1: rename Send Tab activity. r=mfinkle

        <activity
            android:theme="@style/SyncTheme"
            android:icon="@drawable/icon"
            android:label="@string/sync_app_name"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:windowSoftInputMode="adjustResize|stateAlwaysHidden"
            android:taskAffinity="org.mozilla.gecko.sync.setup"
            android:name="org.mozilla.gecko.sync.setup.activities.SetupSyncActivity" >
            <!-- android:configChanges: SetupSyncActivity will handle orientation changes; no longer restarts activity (default) -->
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <!-- Adding a launcher will make Firefox Sync appear
                     on the Apps screen, which we only want when testing. -->
                <!-- <category android:name="android.intent.category.LAUNCHER" /> -->
            </intent-filter>
        </activity>

        <!-- On tablets, SyncTheme is in a dialog, which is not what
             we want for install instructions. -->
        <activity
            android:theme="@style/Gecko"
            android:name="org.mozilla.gecko.sync.setup.activities.WebViewActivity" />

        <activity
            android:theme="@style/SyncTheme"
            android:clearTaskOnLaunch="true"
            android:name="org.mozilla.gecko.sync.setup.activities.AccountActivity"
            android:windowSoftInputMode="adjustResize|stateHidden"/>

        <activity
            android:theme="@style/SyncTheme"
            android:clearTaskOnLaunch="true"
            android:name="org.mozilla.gecko.sync.setup.activities.RedirectToSetupActivity"
            android:windowSoftInputMode="adjustResize|stateHidden"/>

        <!-- Secondary Sync activities. These depend on other activities for context
             (display a result, or a next step). Since these don't make sense as stand-alone
             activities, set excludeFromRecents="true" -->
        <activity
            android:theme="@style/SyncTheme"
            android:noHistory="true"
            android:excludeFromRecents="true"
            android:name="org.mozilla.gecko.sync.setup.activities.SetupFailureActivity" />

        <activity
            android:theme="@style/SyncTheme"
            android:noHistory="true"
            android:excludeFromRecents="true"
            android:name="org.mozilla.gecko.sync.setup.activities.SetupSuccessActivity" />

        <activity
            android:theme="@style/SyncTheme"
            android:excludeFromRecents="true"
            android:taskAffinity="org.mozilla.gecko.sync.setup"
            android:name="org.mozilla.gecko.sync.config.activities.SelectEnginesActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
            </intent-filter>
         </activity>

        <receiver
            android:name="org.mozilla.gecko.sync.receivers.UpgradeReceiver">
            <intent-filter>
                <action android:name="android.intent.action.PACKAGE_REPLACED" />
                <data android:scheme="package"/>
            </intent-filter>
        </receiver>

        <receiver
            android:name="org.mozilla.gecko.sync.receivers.SyncAccountDeletedReceiver"
            android:permission="@MOZ_ANDROID_SHARED_ACCOUNT_TYPE@.permission.PER_ACCOUNT_TYPE">
            <intent-filter>
                <action android:name="@MOZ_ANDROID_SHARED_ACCOUNT_TYPE@.accounts.SYNC_ACCOUNT_DELETED_ACTION"/>
            </intent-filter>
        </receiver>

        <activity
            android:theme="@style/SyncTheme"
            android:excludeFromRecents="true"
            android:icon="@drawable/icon"
            android:label="@string/sync_title_send_tab"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:windowSoftInputMode="adjustResize|stateHidden"
            android:taskAffinity="org.mozilla.gecko.sync.setup"
            android:name="org.mozilla.gecko.sync.setup.activities.SendTabActivity" >

            <intent-filter>
                <action android:name="android.intent.action.SEND" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="text/plain" />
            </intent-filter>
        </activity>