Skip to content

Commit

Permalink
fix crash on screen on (kindle)
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Bier <volker.bier@web.de>
  • Loading branch information
vbier committed May 1, 2018
1 parent b9076b5 commit f2d39b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
public class EmptyActivity extends ScreenControllingActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

boolean dim = getIntent().getExtras() != null && getIntent().getExtras().getBoolean("dim");
if (dim) {
super.onCreate(savedInstanceState);

setContentView(R.layout.activity_empty);

final WindowManager.LayoutParams layout = getWindow().getAttributes();
Expand Down

0 comments on commit f2d39b1

Please sign in to comment.