Loading res/layout/wifi_progress_header.xml +16 −4 Original line number Diff line number Diff line Loading @@ -15,8 +15,20 @@ limitations under the License. --> <ProgressBar xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout android:layout_width="match_parent" android:layout_height="3dp" xmlns:android="http://schemas.android.com/apk/res/android"> <View android:id="@+id/progress_bar_background" style="@style/TrimmedHorizontalProgressBar" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?android:attr/colorSecondary" /> <ProgressBar android:id="@+id/progress_bar_animation" android:layout_width="match_parent" android:layout_height="wrap_content" style="@style/TrimmedHorizontalProgressBar" android:indeterminate="true" /> </FrameLayout> src/com/android/settings/wifi/WifiSettings.java +4 −4 Original line number Diff line number Diff line Loading @@ -49,7 +49,6 @@ import android.view.ContextMenu.ContextMenuInfo; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.ProgressBar; import android.widget.Toast; import com.android.internal.logging.nano.MetricsProto.MetricsEvent; Loading Loading @@ -140,7 +139,7 @@ public class WifiSettings extends RestrictedSettingsFragment private WifiDialog mDialog; private WriteWifiConfigToNfcDialog mWifiToNfcDialog; private ProgressBar mProgressHeader; private View mProgressHeader; // this boolean extra specifies whether to disable the Next button when not connected. Used by // account creation outside of setup wizard. Loading Loading @@ -187,7 +186,8 @@ public class WifiSettings extends RestrictedSettingsFragment super.onViewCreated(view, savedInstanceState); final Activity activity = getActivity(); if (activity != null) { mProgressHeader = (ProgressBar) setPinnedHeaderView(R.layout.wifi_progress_header); mProgressHeader = setPinnedHeaderView(R.layout.wifi_progress_header) .findViewById(R.id.progress_bar_animation); setProgressBarVisible(false); } } Loading Loading @@ -909,7 +909,7 @@ public class WifiSettings extends RestrictedSettingsFragment protected void setProgressBarVisible(boolean visible) { if (mProgressHeader != null) { mProgressHeader.setVisibility(visible ? View.VISIBLE : View.INVISIBLE); mProgressHeader.setVisibility(visible ? View.VISIBLE : View.GONE); } } Loading Loading
res/layout/wifi_progress_header.xml +16 −4 Original line number Diff line number Diff line Loading @@ -15,8 +15,20 @@ limitations under the License. --> <ProgressBar xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout android:layout_width="match_parent" android:layout_height="3dp" xmlns:android="http://schemas.android.com/apk/res/android"> <View android:id="@+id/progress_bar_background" style="@style/TrimmedHorizontalProgressBar" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?android:attr/colorSecondary" /> <ProgressBar android:id="@+id/progress_bar_animation" android:layout_width="match_parent" android:layout_height="wrap_content" style="@style/TrimmedHorizontalProgressBar" android:indeterminate="true" /> </FrameLayout>
src/com/android/settings/wifi/WifiSettings.java +4 −4 Original line number Diff line number Diff line Loading @@ -49,7 +49,6 @@ import android.view.ContextMenu.ContextMenuInfo; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.ProgressBar; import android.widget.Toast; import com.android.internal.logging.nano.MetricsProto.MetricsEvent; Loading Loading @@ -140,7 +139,7 @@ public class WifiSettings extends RestrictedSettingsFragment private WifiDialog mDialog; private WriteWifiConfigToNfcDialog mWifiToNfcDialog; private ProgressBar mProgressHeader; private View mProgressHeader; // this boolean extra specifies whether to disable the Next button when not connected. Used by // account creation outside of setup wizard. Loading Loading @@ -187,7 +186,8 @@ public class WifiSettings extends RestrictedSettingsFragment super.onViewCreated(view, savedInstanceState); final Activity activity = getActivity(); if (activity != null) { mProgressHeader = (ProgressBar) setPinnedHeaderView(R.layout.wifi_progress_header); mProgressHeader = setPinnedHeaderView(R.layout.wifi_progress_header) .findViewById(R.id.progress_bar_animation); setProgressBarVisible(false); } } Loading Loading @@ -909,7 +909,7 @@ public class WifiSettings extends RestrictedSettingsFragment protected void setProgressBarVisible(boolean visible) { if (mProgressHeader != null) { mProgressHeader.setVisibility(visible ? View.VISIBLE : View.INVISIBLE); mProgressHeader.setVisibility(visible ? View.VISIBLE : View.GONE); } } Loading