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

Commit ca4dc9a7 authored by Jason Monk's avatar Jason Monk Committed by Android (Google) Code Review
Browse files

Merge "Clear out old views when setting new content in settings" into nyc-dev

parents 05ceda5c 4ea6657d
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -176,8 +176,11 @@ public class SettingsDrawerActivity extends Activity {

    @Override
    public void setContentView(@LayoutRes int layoutResID) {
        LayoutInflater.from(this).inflate(layoutResID,
                (ViewGroup) findViewById(R.id.content_frame));
        final ViewGroup parent = (ViewGroup) findViewById(R.id.content_frame);
        if (parent != null) {
            parent.removeAllViews();
        }
        LayoutInflater.from(this).inflate(layoutResID, parent);
    }

    @Override