One more crash fix

This commit is contained in:
DrKLO 2014-06-04 20:02:46 +04:00
parent 2c61da0001
commit 231999ed10

View file

@ -29,7 +29,6 @@ import android.os.Build;
import android.os.Vibrator;
import android.provider.Settings;
import android.support.v4.app.NotificationCompat;
import android.support.v7.app.ActionBarActivity;
import android.text.Html;
import android.util.SparseArray;
@ -5072,7 +5071,7 @@ public class MessagesController implements NotificationCenter.NotificationCenter
@Override
public void run() {
try {
if (!((ActionBarActivity) context).isFinishing()) {
if (!((Activity) context).isFinishing()) {
progressDialog.dismiss();
}
} catch (Exception e) {
@ -5113,7 +5112,7 @@ public class MessagesController implements NotificationCenter.NotificationCenter
@Override
public void run() {
startingSecretChat = false;
if (!((ActionBarActivity) context).isFinishing()) {
if (!((Activity) context).isFinishing()) {
try {
progressDialog.dismiss();
} catch (Exception e) {
@ -5168,7 +5167,7 @@ public class MessagesController implements NotificationCenter.NotificationCenter
Utilities.RunOnUIThread(new Runnable() {
@Override
public void run() {
if (!((ActionBarActivity) context).isFinishing()) {
if (!((Activity) context).isFinishing()) {
startingSecretChat = false;
try {
progressDialog.dismiss();
@ -5192,7 +5191,7 @@ public class MessagesController implements NotificationCenter.NotificationCenter
@Override
public void run() {
startingSecretChat = false;
if (!((ActionBarActivity) context).isFinishing()) {
if (!((Activity) context).isFinishing()) {
try {
progressDialog.dismiss();
} catch (Exception e) {