Make all the Settings Switches appear again
- use the ActionBar Theme context when creating the Switch for getting the correct Theming Change-Id: Ic3701c53662b0f245c7149b119de8bb5cbaae232
This commit is contained in:
@@ -42,7 +42,7 @@ public class AndroidBeam extends Fragment
|
||||
super.onCreate(savedInstanceState);
|
||||
Activity activity = getActivity();
|
||||
|
||||
mActionBarSwitch = new Switch(activity);
|
||||
mActionBarSwitch = new Switch(activity.getActionBar().getThemedContext());
|
||||
|
||||
if (activity instanceof SettingsActivity) {
|
||||
final int padding = activity.getResources().getDimensionPixelSize(
|
||||
|
Reference in New Issue
Block a user