My Rebbe, R' Ozer Schwartz Zatzal told me, that as soon as a person is Osek in Teshuva in a serious way, like by writing down your issues and looking for solutions; then he can have Yeshuos in his life. RSRH Zatzal says that although Dovid had broken a Jewish home with the Ma'aseh (the episode of) Bas-Sheva, yet, when he did Teshuva, Dovid felt like he did nothing wrong and he was just as good as ever!
Notice how Dovid had Davka the son of Bas Sheva (Shlomo) be heir to the throne. Wasn’t he ashamed of his past? Wouldn’t he want to hide Bas Sheva in a closet, without the world forever being aware of his sin; since her son Shlomo is such a stain in his life, a living testimonial to his father once having done such a wicked sin with his mother?
I have seen in Novardok where someone mentioned a sin that he did, and his Rebbe told him: “Didn’t you do Teshuva?? It’s over. Totally! As if it never happened!” In general, we see how Dovid wasn’t Nis'pael from anything! This is the Midda of a Melech.