Skip to content

Commit

Permalink
Merge pull request #241 from Nikhil-z/master
Browse files Browse the repository at this point in the history
Fix for screen get turned off while reading
  • Loading branch information
Mahavir Jain authored Jul 17, 2018
2 parents f9aa164 + 52e8050 commit 69c8298
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,12 @@ public enum EpubSourceType {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); //Fix for screen get turned off while reading

setConfig(savedInstanceState);


setContentView(R.layout.folio_activity);
this.savedInstanceState = savedInstanceState;

Expand Down Expand Up @@ -530,8 +534,11 @@ public void onRequestPermissionsResult(int requestCode, @NonNull String[] permis
}
}

}

@Override
public Config.Direction getDirection() {
return direction;
}
}
}

0 comments on commit 69c8298

Please sign in to comment.