Remove the Downloads launcher icon.
Steve McKay [Thu, 10 Mar 2016 19:51:04 +0000 (11:51 -0800)]
And the intent filter for "BROWSE_DOWNLOADS".

Bug: 27563427
Change-Id: I22e8cbbd49c9d2317146d18d90b15549dadfc69f

ui/AndroidManifest.xml
ui/src/com/android/providers/downloads/ui/DownloadList.java [deleted file]

index e93e268..fa795c9 100644 (file)
                  android:requiredForAllUsers="true">
 
         <activity
-            android:name=".DownloadList"
-            android:theme="@android:style/Theme.NoDisplay">
-            <intent-filter>
-                <action android:name="android.intent.action.MAIN" />
-                <category android:name="android.intent.category.LAUNCHER" />
-            </intent-filter>
-            <intent-filter>
-                <action android:name="android.intent.action.VIEW_DOWNLOADS" />
-                <category android:name="android.intent.category.DEFAULT" />
-            </intent-filter>
-        </activity>
-
-        <activity
             android:name=".TrampolineActivity"
             android:theme="@android:style/Theme.Translucent.NoTitleBar"
             android:permission="android.permission.MANAGE_DOCUMENTS">
diff --git a/ui/src/com/android/providers/downloads/ui/DownloadList.java b/ui/src/com/android/providers/downloads/ui/DownloadList.java
deleted file mode 100644 (file)
index 044bd4e..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (C) 2010 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.android.providers.downloads.ui;
-
-import android.app.Activity;
-import android.content.Intent;
-import android.os.Bundle;
-import android.provider.DocumentsContract;
-
-import com.android.providers.downloads.Constants;
-
-public class DownloadList extends Activity {
-    @Override
-    public void onCreate(Bundle icicle) {
-        super.onCreate(icicle);
-
-        // Trampoline over to new management UI
-        final Intent intent = new Intent(DocumentsContract.ACTION_MANAGE_ROOT);
-        intent.setData(DocumentsContract.buildRootUri(
-                Constants.STORAGE_AUTHORITY, Constants.STORAGE_ROOT_ID));
-        startActivity(intent);
-        finish();
-    }
-}