mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-11 17:41:57 +01:00
Catch crash during ChangeLog displaying
This commit is contained in:
parent
5c0c5ed952
commit
7ed2c26b2f
@ -31,6 +31,7 @@ import android.telephony.PhoneStateListener;
|
||||
import android.telephony.TelephonyManager;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.ActionBarDrawerToggle;
|
||||
@ -202,7 +203,12 @@ public class ControlCenterv2 extends AppCompatActivity
|
||||
|
||||
ChangeLog cl = createChangeLog();
|
||||
if (cl.isFirstRun()) {
|
||||
cl.getLogDialog().show();
|
||||
try {
|
||||
cl.getLogDialog().show();
|
||||
} catch (Exception ignored){
|
||||
GB.toast(getBaseContext(), "Error showing Changelog", Toast.LENGTH_LONG, GB.ERROR);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
GBApplication.deviceService().start();
|
||||
|
Loading…
Reference in New Issue
Block a user