Skip to content

Commit

Permalink
Update Application.java
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexLiuDev233 authored Jul 22, 2024
1 parent a6a7251 commit 08b32bc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.widget.Toast;

import androidx.multidex.MultiDexApplication;
import androidx.annotation.NonNull;

import org.bouncycastle.jce.provider.BouncyCastleProvider;

Expand All @@ -21,7 +22,7 @@ public void onCreate() {
@Override
public void uncaughtException(@NonNull Thread thread, @NonNull Throwable throwable) {
super.uncaughtException(thread,throwable);
Toast.makeText(this,"程序遇到致命错误:"+throwable.getMessage(), Toast.LENGTH_LONG).show();
Toast.makeText(Application.this,"程序遇到致命错误:"+throwable.getMessage(), Toast.LENGTH_LONG).show();
}
});
}
Expand Down

0 comments on commit 08b32bc

Please sign in to comment.