Merge "Hide all insets when the dream is activated" into rvc-dev am: 8c224313f7 am: f781df0667
Change-Id: Ie9f5559925925b4d4939c0a22e409bbafb641dd2
This commit is contained in:
@@ -19,6 +19,7 @@ package android.service.dreams;
|
|||||||
import android.annotation.Nullable;
|
import android.annotation.Nullable;
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.view.WindowInsets;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Activity used by the {@link DreamService} to draw screensaver content
|
* The Activity used by the {@link DreamService} to draw screensaver content
|
||||||
@@ -55,5 +56,8 @@ public class DreamActivity extends Activity {
|
|||||||
if (callback != null) {
|
if (callback != null) {
|
||||||
callback.onActivityCreated(this);
|
callback.onActivityCreated(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Hide all insets (nav bar, status bar, etc) when the dream is showing
|
||||||
|
getWindow().getInsetsController().hide(WindowInsets.Type.systemBars());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user