Commit 7ee5eeaa authored by Andreas Schildbach's avatar Andreas Schildbach

WalletTransactionsFragment: Remove unused progress state.

parent a88888d6
......@@ -5,11 +5,6 @@
android:layout_height="match_parent"
android:background="@color/bg_less_bright" >
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center" />
<TextView
android:id="@+id/wallet_transactions_empty"
android:layout_width="match_parent"
......
......@@ -117,7 +117,7 @@ public class WalletTransactionsFragment extends Fragment implements Transactions
@Override
public void onChanged(final Set<Transaction> transactions) {
if (transactions.isEmpty()) {
viewGroup.setDisplayedChild(1);
viewGroup.setDisplayedChild(0);
final WalletTransactionsViewModel.Direction direction = viewModel.direction.getValue();
final WarningType warning = viewModel.warning.getValue();
......@@ -139,7 +139,7 @@ public class WalletTransactionsFragment extends Fragment implements Transactions
}
emptyView.setText(emptyText);
} else {
viewGroup.setDisplayedChild(2);
viewGroup.setDisplayedChild(1);
}
}
});
......@@ -179,7 +179,6 @@ public class WalletTransactionsFragment extends Fragment implements Transactions
final View view = inflater.inflate(R.layout.wallet_transactions_fragment, container, false);
viewGroup = (ViewAnimator) view.findViewById(R.id.wallet_transactions_group);
viewGroup.setDisplayedChild(2); // don't show progress
emptyView = (TextView) view.findViewById(R.id.wallet_transactions_empty);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment