My question involves bankruptcy in the state of: CA

I am wondering how it would affect my chapter 7 if I were to sign up for a 24 month smartphone contract before filing? Or after filing but before discharge? Would this be considered a luxury purchase if I use a credit card? (Or is it luxury if I use cash?)

I know I shouldn't be spending money I don't have, but I have not had a decent phone in years. I am thinking that after my debts are discharged it may be difficult to get approved for a contract, and might get stuck with a "pay as you go" plan which are not typically the best.