Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b546e997 authored by Étienne Ruffieux's avatar Étienne Ruffieux Committed by Gerrit Code Review
Browse files

Merge "Add empty activity for Pandora MediaPlayer" into main

parents 02ea7572 fbf31902
Loading
Loading
Loading
Loading
+26 −21
Original line number Original line Diff line number Diff line
@@ -16,7 +16,6 @@


<manifest xmlns:android="http://schemas.android.com/apk/res/android"
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.android.pandora">
        package="com.android.pandora">

    <application>
    <application>
        <uses-library android:name="android.test.runner" />
        <uses-library android:name="android.test.runner" />


@@ -27,8 +26,7 @@
            </intent-filter>
            </intent-filter>
        </service>
        </service>


      <service
        <service android:name=".Hfp$PandoraInCallService"
          android:name=".Hfp$PandoraInCallService"
                android:permission="android.permission.BIND_INCALL_SERVICE"
                android:permission="android.permission.BIND_INCALL_SERVICE"
                android:exported="true">
                android:exported="true">
            <intent-filter>
            <intent-filter>
@@ -36,6 +34,13 @@
            </intent-filter>
            </intent-filter>
        </service>
        </service>


        <activity android:name=".MediaPlayerActivity"
                android:exported="true" >
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <data android:mimeType="audio/*"/>
            </intent-filter>
        </activity>
    </application>
    </application>


    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.INTERNET" />
+36 −0
Original line number Original line Diff line number Diff line
/*
 * Copyright (C) 2024 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.pandora

import android.app.Activity
import android.os.Bundle

/**
 * A skeleton class that provides empty implementations for Activity class.
 *
 * <p>This is needed to test AVRCP Browsing as players without an audio activity are filtered out.
 */
class MediaPlayerActivity : Activity() {
    override fun onCreate(icicle: Bundle?) {}

    override fun onDestroy() {}

    override fun onRequestPermissionsResult(
        requestCode: Int,
        permissions: Array<String>,
        grantResults: IntArray
    ) {}
}