Clicking on poster's name crashes the app
When you click on the account name on a post it crashes the activity. I received a crash report from a user:
Stacktrace:
android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
at android.app.ContextImpl.startActivity(ContextImpl.java:953)
at android.content.ContextWrapper.startActivity(ContextWrapper.java:405)
at androidx.core.content.ContextCompat.startActivity(ContextCompat.java:251)
at com.h.pixeldroid.utils.api.objects.Account.openProfile(Account.kt:88)
at com.h.pixeldroid.posts.StatusViewHolder$setupPost$$inlined$apply$lambda$1.onClick(StatusViewHolder.kt:79)
at android.view.View.performClick(View.java:7146)
at android.view.View.performClickInternal(View.java:7119)
at android.view.View.access$3500(View.java:803)
at android.view.View$PerformClick.run(View.java:27533)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980)