David 9 年之前
父節點
當前提交
7deb70dbb6

+ 2 - 2
app/src/main/java/com/example/david/libretasker/InputSelector/Network.java

@@ -91,7 +91,7 @@ public class Network extends Fragment {
                     ft.commit();
                 } else {
                     if ( f != null ) {
-                         ft.remove(f);
+                        ft.remove(f);
                         ft.commit();
                     }
                 }
@@ -147,7 +147,7 @@ public class Network extends Fragment {
         }
         List<WifiConfiguration> configs = wm.getConfiguredNetworks();
         if (configs == null)
-            return null;
+            return new String[]{"Please", "Turn", "your","Wifi", "on"};
 
         String[] SSIDs = new String[configs.size()];
         int i = 0;

+ 0 - 2
app/src/main/res/layout/fragment_contact.xml

@@ -16,7 +16,6 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:text="Name:"
-            android:layout_marginLeft="5dp"
             android:layout_weight="3" />
 
         <EditText
@@ -38,7 +37,6 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:text="Number:"
-            android:layout_marginLeft="5dp"
             android:layout_weight="3" />
 
         <EditText

+ 0 - 6
app/src/main/res/layout/fragment_wifi.xml

@@ -51,12 +51,6 @@
 
 
     </LinearLayout>
-    <TextView
-        android:text="SSIDs"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:id="@+id/textView7"
-        android:layout_weight="1" />
 
     <FrameLayout
         android:layout_width="match_parent"