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

Commit f781df06 authored by Galia Peycheva's avatar Galia Peycheva Committed by Automerger Merge Worker
Browse files

Merge "Hide all insets when the dream is activated" into rvc-dev am: 8c224313

Change-Id: I31ab261e973c6612bf451deea5385cbe5e234f60
parents 247ff0cd 8c224313
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package android.service.dreams;
import android.annotation.Nullable;
import android.app.Activity;
import android.os.Bundle;
import android.view.WindowInsets;

/**
 * The Activity used by the {@link DreamService} to draw screensaver content
@@ -55,5 +56,8 @@ public class DreamActivity extends Activity {
        if (callback != null) {
            callback.onActivityCreated(this);
        }

        // Hide all insets (nav bar, status bar, etc) when the dream is showing
        getWindow().getInsetsController().hide(WindowInsets.Type.systemBars());
    }
}