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

Commit 4c23cb1a authored by Fabrice Di Meglio's avatar Fabrice Di Meglio
Browse files

Fix LocalePicker background

- use the background defined by the Theme

See bug: #13140648 Settings needs to support the new Quantum Paper theme

Change-Id: I30f1146fbcb57088a62c999dce349d1f85510427
parent 36f36af9
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.internal.app;

import android.content.res.TypedArray;
import com.android.internal.R;

import android.app.ActivityManagerNative;
@@ -227,6 +228,12 @@ public class LocalePicker extends ListFragment {
    @Override
    public void onActivityCreated(final Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);

        final int[] attrs = { android.R.attr.colorBackground };
        final TypedArray a = getActivity().getTheme().obtainStyledAttributes(attrs);
        getListView().setBackgroundColor(a.getColor(0, android.R.color.transparent));
        a.recycle();

        final ArrayAdapter<LocaleInfo> adapter = constructAdapter(getActivity(),
                isInDeveloperMode());
        setListAdapter(adapter);