зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1215012 - mdnsd - Firefox Beta Android excessive battery usage r=xeonchen
This commit is contained in:
Родитель
223292e382
Коммит
f26702a2a5
|
@ -40,12 +40,7 @@ public abstract class MulticastDNSManager {
|
|||
|
||||
public static MulticastDNSManager getInstance(final Context context) {
|
||||
if (instance == null) {
|
||||
// Bug 1188935: There's a bug on Android 4.4 and before.
|
||||
if (Versions.feature21Plus) {
|
||||
instance = new NsdMulticastDNSManager(context);
|
||||
} else {
|
||||
instance = new DummyMulticastDNSManager();
|
||||
}
|
||||
instance = new DummyMulticastDNSManager();
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче