Loading src/com/android/settings/ProgressCategory.java +9 −1 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ import java.util.Map; public class ProgressCategory extends PreferenceCategory { private boolean mProgress = false; private View oldView = null; public ProgressCategory(Context context, AttributeSet attrs) { super(context, attrs); Loading @@ -41,6 +42,13 @@ public class ProgressCategory extends PreferenceCategory { int visibility = mProgress ? View.VISIBLE : View.INVISIBLE; textView.setVisibility(visibility); progressBar.setVisibility(visibility); if (oldView != null) { oldView.findViewById(R.id.scanning_progress).setVisibility(View.GONE); oldView.findViewById(R.id.scanning_text).setVisibility(View.GONE); oldView.setVisibility(View.GONE); } oldView = view; } /** Loading src/com/android/settings/bluetooth/BluetoothSettings.java +2 −1 Original line number Diff line number Diff line Loading @@ -188,7 +188,8 @@ public class BluetoothSettings extends PreferenceActivity super.onPause(); mLocalManager.setForegroundActivity(null); mDevicePreferenceMap.clear(); mDeviceList.removeAll(); unregisterReceiver(mReceiver); mLocalManager.unregisterCallback(this); Loading Loading
src/com/android/settings/ProgressCategory.java +9 −1 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ import java.util.Map; public class ProgressCategory extends PreferenceCategory { private boolean mProgress = false; private View oldView = null; public ProgressCategory(Context context, AttributeSet attrs) { super(context, attrs); Loading @@ -41,6 +42,13 @@ public class ProgressCategory extends PreferenceCategory { int visibility = mProgress ? View.VISIBLE : View.INVISIBLE; textView.setVisibility(visibility); progressBar.setVisibility(visibility); if (oldView != null) { oldView.findViewById(R.id.scanning_progress).setVisibility(View.GONE); oldView.findViewById(R.id.scanning_text).setVisibility(View.GONE); oldView.setVisibility(View.GONE); } oldView = view; } /** Loading
src/com/android/settings/bluetooth/BluetoothSettings.java +2 −1 Original line number Diff line number Diff line Loading @@ -188,7 +188,8 @@ public class BluetoothSettings extends PreferenceActivity super.onPause(); mLocalManager.setForegroundActivity(null); mDevicePreferenceMap.clear(); mDeviceList.removeAll(); unregisterReceiver(mReceiver); mLocalManager.unregisterCallback(this); Loading