Skip to content

Commit

Permalink
### v 6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
juergen committed Aug 2, 2019
1 parent 21e3ca7 commit 602ca45
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "de.baumann.browser"
minSdkVersion 21
targetSdkVersion 28
versionCode 97
versionName "6.6"
versionCode 98
versionName "6.6.1"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
}
Expand Down
2 changes: 1 addition & 1 deletion app/release/output.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":97,"versionName":"6.6","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":98,"versionName":"6.6.1","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
16 changes: 12 additions & 4 deletions app/src/main/java/de/baumann/browser/Activity/BrowserActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -654,10 +654,7 @@ public synchronized void showAlbum(AlbumController controller) {
currentAlbumController = controller;
currentAlbumController.activate();
activity_main.setBackgroundColor(getResources().getColor(R.color.color_light));
if (ninjaWebView == currentAlbumController) {
omniboxTitle.setText(currentAlbumController.getAlbumTitle());
setColor();
}
updateOmnibox();
}

@Override
Expand Down Expand Up @@ -2326,6 +2323,7 @@ public void run() {

private synchronized void updateAlbum(String url) {
((NinjaWebView) currentAlbumController).loadUrl(url);
updateOmnibox();
}

private void closeTabConfirmation(final Runnable okAction) {
Expand Down Expand Up @@ -2383,6 +2381,16 @@ public void run() {
}
}

private void updateOmnibox() {
if (ninjaWebView == currentAlbumController) {
omniboxTitle.setText(currentAlbumController.getAlbumTitle());
setColor();
} else {
ninjaWebView = (NinjaWebView) currentAlbumController;
updateProgress(ninjaWebView.getProgress());
}
}

private void scrollChange () {

if (Objects.requireNonNull(sp.getString("sp_hideToolbar", "0")).equals("0") ||
Expand Down

0 comments on commit 602ca45

Please sign in to comment.