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

Commit 637afec7 authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

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

am: 299a4c61

* commit '299a4c61':
  Clear out old views when setting new content in settings

Change-Id: I62cfa80df4c383cba81bb41978022367b030497b
parents 8fd95a73 299a4c61
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