Theme and Icons #260

Merged
mmarif merged 15 commits from light-theme into master 2020-03-08 13:52:34 +00:00
Showing only changes of commit 5b8c485883 - Show all commits

View File

@ -50,7 +50,7 @@ public class FileViewActivity extends BaseActivity {
private PDFView pdfView;
private LinearLayout pdfViewFrame;
private byte[] decodedPdf;
private Boolean $nightMode;
private Boolean pdfNightMode;
Outdated
Review

why this variable start with $ ?

why this variable start with `$` ?

Good catch. I was into PHP mode. :)

Good catch. I was into PHP mode. :)
@Override
protected int getLayoutResourceId(){
@ -165,7 +165,7 @@ public class FileViewActivity extends BaseActivity {
singleCodeContents.setVisibility(View.GONE);
pdfViewFrame.setVisibility(View.VISIBLE);
$nightMode = tinyDb.getBoolean("enablePdfMode");
pdfNightMode = tinyDb.getBoolean("enablePdfMode");
decodedPdf = Base64.decode(response.body().getContent(), Base64.DEFAULT);
pdfView.fromBytes(decodedPdf)
@ -183,7 +183,7 @@ public class FileViewActivity extends BaseActivity {
.fitEachPage(true)
.pageSnap(false)
.pageFling(true)
.nightMode($nightMode)
.nightMode(pdfNightMode)
.load();
}