I am new to Android/Java. Recently I\'ve been working on a project where I\'ve written a function that should only show a dialogue fragment once even after multiple calls. Howev