I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit f231ea09 authored by zzz's avatar zzz
Browse files

Util: ObjectCounter better android detection

parent f9ffdd51
No related branches found
No related tags found
No related merge requests found
......@@ -52,8 +52,8 @@ public class ObjectCounter<K> implements Serializable {
* keySet on Android.
*/
public Set<K> objects() {
if (System.getProperty("java.vendor").toUpperCase().contains("ANDROID")){
return ((Map< K, ?>)this.map).keySet();
if (SystemVersion.isAndroid()) {
return ((Map<K, ?>)this.map).keySet();
}
return this.map.keySet();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment