Remove pause view dependendy on getCurrentActivity to remove null pointer crash