Skip to content

Commit 37a4c50

Browse files
committedNov 12, 2024
fix of panoview with multiple pano in one album
1 parent 5cb7788 commit 37a4c50

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed
 

‎app/src/main/java/fr/nuage/souvenirs/view/PanoView.java

+3-8
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public String getPanoUrl() {
8888
return ("/image/" + tempPanoFile.getName());
8989
}
9090

91-
private static class LocalContentWebViewClient extends WebViewClientCompat {
91+
private class LocalContentWebViewClient extends WebViewClientCompat {
9292

9393
private final WebViewAssetLoader mAssetLoader;
9494

@@ -104,7 +104,7 @@ public WebResourceResponse shouldInterceptRequest(WebView view,
104104

105105
}
106106

107-
public static class WebAppInterface {
107+
public class WebAppInterface {
108108

109109
PanoView panoView;
110110

@@ -114,12 +114,7 @@ public static class WebAppInterface {
114114

115115
@JavascriptInterface
116116
public void fullScreen() {
117-
new Handler(Looper.getMainLooper()).post(new Runnable(){
118-
@Override
119-
public void run() {
120-
panoView.performClick();
121-
}
122-
});
117+
new Handler(Looper.getMainLooper()).post(() -> panoView.performClick());
123118

124119
}
125120
}

0 commit comments

Comments
 (0)
Failed to load comments.