mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 14:35:03 +01:00
One more crash fix
This commit is contained in:
parent
2c61da0001
commit
231999ed10
1 changed files with 4 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue