File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
src/Core/src/Platform/Android Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 1010using Android . Webkit ;
1111using Java . Net ;
1212using Microsoft . Extensions . Logging ;
13+ using Microsoft . Maui . Storage ;
1314using AWebView = Android . Webkit . WebView ;
1415
1516namespace Microsoft . Maui . Platform
@@ -141,7 +142,7 @@ public MauiHybridWebViewClient(HybridWebViewHandler handler)
141142 return null ;
142143 }
143144
144- filename = PathUtils . NormalizePath ( filename ) ;
145+ filename = FileSystemUtils . NormalizePath ( filename ) ;
145146
146147 try
147148 {
@@ -152,15 +153,7 @@ public MauiHybridWebViewClient(HybridWebViewHandler handler)
152153 return null ;
153154 }
154155 }
155-
156- internal static class PathUtils
157- {
158- public static string NormalizePath ( string filename ) =>
159- filename
160- . Replace ( '\\ ' , Path . DirectorySeparatorChar )
161- . Replace ( '/' , Path . DirectorySeparatorChar ) ;
162- }
163-
156+
164157 private protected static IDictionary < string , string > GetHeaders ( string contentType ) =>
165158 new Dictionary < string , string > {
166159 { "Content-Type" , contentType } ,
You can’t perform that action at this time.
0 commit comments