If $\pi_1$ and $\pi_2$ are two smooth admissible representations of $\operatorname{GL}_2(\mathbb{Q}_p)$ over $\overline{\mathbb{F}}_p$ with central characters. I want to prove that if $\pi_1$ has central character $\phi$ and $\operatorname{Ext}^i(\pi_1, \pi_2)\neq0$ for some $i>0$, then $\phi$ is also the central character of $\pi_2$.
Based on my previous question, we know that this holds for $i=1$. For $i>1$, if $\operatorname{Ext}^i(\pi_1, \pi_2)\neq0$, then we have a non-trivial extension $0\to\pi_2\to V_1\to\dotsb\to V_i\to\pi_1\to0$. In this case, non-triviality means that there is no morphism from $0\to\pi_2\to V_1\to\dotsb\to V_i\to\pi_1\to0$ to $0\to\pi_2\to \pi_2\to0\to\dotsb\to0\to \pi_1\to\pi_1\to0$.
I think this result is well-known to experts, could someone explain how to prove this or give a reference?