• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

frameworks/base


Commit MetaInfo

修訂22fd00fe6bbc3dfc28ca23311fa79a8cb7e5d8c5 (tree)
時間2011-02-25 18:28:55
作者Chih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Ethernet: initialize state depends on interfaces

If no interface found, disable Ethernet on initialization.

Change Summary

差異

--- a/ethernet/java/android/net/ethernet/EthernetStateTracker.java
+++ b/ethernet/java/android/net/ethernet/EthernetStateTracker.java
@@ -243,7 +243,7 @@ public class EthernetStateTracker extends NetworkStateTracker {
243243 if (state != mEM.ETHERNET_STATE_DISABLED) {
244244 if (state == mEM.ETHERNET_STATE_UNKNOWN) {
245245 // maybe this is the first time we run, so set it to enabled
246- mEM.setEnabled(true);
246+ mEM.setEnabled(mEM.getDeviceNameList() != null);
247247 } else {
248248 try {
249249 resetInterface();