Delete media feature flag

The feature will always be available, even for users who disabled it
on Beta 1.

Bug: 160826507
Test: manual
Test: MediaControlsParentPreferenceControllerTest
Test: MediaControlsPreferenceControllerTest
Change-Id: Ia2835e7c8156d753a8f8fbf248f2509003309fd2
This commit is contained in:
Lucas Dupin
2020-07-09 10:55:57 -07:00
parent f002dd72ac
commit 42219fb395
4 changed files with 4 additions and 40 deletions

View File

@@ -16,7 +16,6 @@
package com.android.settings.sound;
import static android.provider.Settings.Global.SHOW_MEDIA_ON_QUICK_SETTINGS;
import static android.provider.Settings.Secure.MEDIA_CONTROLS_RESUME;
import android.content.Context;
@@ -47,11 +46,6 @@ public class MediaControlsPreferenceController extends TogglePreferenceControlle
@Override
public int getAvailabilityStatus() {
return useQsMediaPlayer(mContext) ? AVAILABLE : UNSUPPORTED_ON_DEVICE;
}
protected static boolean useQsMediaPlayer(Context context) {
return Settings.Global.getInt(context.getContentResolver(),
SHOW_MEDIA_ON_QUICK_SETTINGS, 1) > 0;
return AVAILABLE;
}
}