mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-23 06:50:36 +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.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) {
|
||||||
|
|
Loading…
Reference in a new issue