Browse Source

Fix the bug causing spinner click in pop up window fail

pull/10/head
Shen Gao 7 years ago
parent
commit
b8b3fbe8f8
  1. 3
      GNSSLogger/app/src/main/java/com/google/android/apps/location/gps/gnsslogger/SettingsFragment.java
  2. 3
      GNSSLogger/app/src/main/res/layout/pop_up_window.xml

3
GNSSLogger/app/src/main/java/com/google/android/apps/location/gps/gnsslogger/SettingsFragment.java

@ -235,7 +235,8 @@ public class SettingsFragment extends Fragment {
LayoutInflater inflater =
(LayoutInflater)
getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View layout = inflater.inflate(R.layout.pop_up_window, null);
View layout = inflater.inflate(R.layout.pop_up_window,
(ViewGroup) getActivity().findViewById(R.id.pop));
// Find UI elements in pop up window
final Spinner residualSpinner = layout.findViewById(R.id.residual_spinner);

3
GNSSLogger/app/src/main/res/layout/pop_up_window.xml

@ -26,7 +26,8 @@
android:layout_height="wrap_content"
android:gravity="end"
android:id="@+id/residual_spinner"
android:entries="@array/residual_options">
android:entries="@array/residual_options"
android:spinnerMode="dialog">
</Spinner>
</LinearLayout>
<EditText

Loading…
Cancel
Save