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 1111using System . Web ;
1212using Android . Webkit ;
1313using Microsoft . Extensions . Logging ;
14+ using Microsoft . Maui . Storage ;
1415using AWebView = Android . Webkit . WebView ;
1516
1617namespace Microsoft . Maui . Platform
@@ -112,7 +113,7 @@ public MauiHybridWebViewClient(HybridWebViewHandler handler)
112113 return null ;
113114 }
114115
115- filename = PathUtils . NormalizePath ( filename ) ;
116+ filename = FileSystemUtils . NormalizePath ( filename ) ;
116117
117118 try
118119 {
@@ -123,15 +124,7 @@ public MauiHybridWebViewClient(HybridWebViewHandler handler)
123124 return null ;
124125 }
125126 }
126-
127- internal static class PathUtils
128- {
129- public static string NormalizePath ( string filename ) =>
130- filename
131- . Replace ( '\\ ' , Path . DirectorySeparatorChar )
132- . Replace ( '/' , Path . DirectorySeparatorChar ) ;
133- }
134-
127+
135128 private protected static IDictionary < string , string > GetHeaders ( string contentType ) =>
136129 new Dictionary < string , string > {
137130 { "Content-Type" , contentType } ,
You can’t perform that action at this time.
0 commit comments