- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
34 lines
958 B
Java
34 lines
958 B
Java
package com.unity3d.services.ads.webplayer;
|
|
|
|
import java.util.HashMap;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class WebPlayerViewCache {
|
|
private static WebPlayerViewCache instance;
|
|
private HashMap<String, WebPlayerView> _webPlayerMap = new HashMap<>();
|
|
|
|
public static WebPlayerViewCache getInstance() {
|
|
if (instance == null) {
|
|
instance = new WebPlayerViewCache();
|
|
}
|
|
return instance;
|
|
}
|
|
|
|
public synchronized void addWebPlayer(String str, WebPlayerView webPlayerView) {
|
|
this._webPlayerMap.put(str, webPlayerView);
|
|
}
|
|
|
|
public synchronized void removeWebPlayer(String str) {
|
|
if (this._webPlayerMap.containsKey(str)) {
|
|
this._webPlayerMap.remove(str);
|
|
}
|
|
}
|
|
|
|
public synchronized WebPlayerView getWebPlayer(String str) {
|
|
if (!this._webPlayerMap.containsKey(str)) {
|
|
return null;
|
|
}
|
|
return this._webPlayerMap.get(str);
|
|
}
|
|
}
|