Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e204da40 authored by arangelov's avatar arangelov
Browse files

Center the work tab empty state spinner inside the empty state view.

Fixes: 151072614
Test: manual
Change-Id: I5f2e8a9c2c4d2eac1a5e1a59447a6de9a5e215e5
parent 23ad582c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -422,8 +422,6 @@ public abstract class AbstractMultiProfilePagerAdapter extends PagerAdapter {
    private void showSpinner(View emptyStateView) {
        emptyStateView.findViewById(R.id.resolver_empty_state_icon).setVisibility(View.INVISIBLE);
        emptyStateView.findViewById(R.id.resolver_empty_state_title).setVisibility(View.INVISIBLE);
        emptyStateView.findViewById(R.id.resolver_empty_state_subtitle)
                .setVisibility(View.INVISIBLE);
        emptyStateView.findViewById(R.id.resolver_empty_state_button).setVisibility(View.INVISIBLE);
        emptyStateView.findViewById(R.id.resolver_empty_state_progress).setVisibility(View.VISIBLE);
        emptyStateView.findViewById(R.id.empty).setVisibility(View.GONE);
+3 −1
Original line number Diff line number Diff line
@@ -67,8 +67,10 @@
        style="@style/Widget.Material.Light.ProgressBar"
        android:visibility="gone"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_height="match_parent"
        android:indeterminate="true"
        android:layout_alignTop="@+id/resolver_empty_state_icon"
        android:layout_alignBottom="@+id/resolver_empty_state_button"
        android:layout_centerHorizontal="true"
        android:layout_below="@+id/resolver_empty_state_subtitle"
        android:indeterminateTint="?attr/colorAccent"/>