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