Skip to content

Commit

Permalink
Fixed undefined theme bug when click a notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Monsterovich committed Mar 6, 2019
1 parent 2979c1e commit 7f0ca0a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ class CallActivity extends FragmentActivity with CallReplySelectedListener {
MessageHelper.sendMessage(this, activeKey.asInstanceOf[FriendKey], reply, ToxMessageType.NORMAL, None)

case None =>
// this should fix undefined theme bug
val mainIntent = new Intent(this, classOf[MainActivity])
startActivity(mainIntent)
val intent = AntoxNotificationManager.createChatIntent(this, Constants.SWITCH_TO_FRIEND, classOf[ChatActivity], activeKey)
startActivity(intent)
}
Expand Down

0 comments on commit 7f0ca0a

Please sign in to comment.