File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
androidTest/java/com/bald/uriah/baldphone/activities
main/java/com/bald/uriah/baldphone/activities Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ android {
28
28
applicationId " com.bald.uriah.baldphone"
29
29
minSdkVersion 21
30
30
targetSdkVersion 28
31
- versionCode 82
32
- versionName " 11.4.1 "
31
+ versionCode 83
32
+ versionName " 11.4.2 "
33
33
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
34
34
}
35
35
Original file line number Diff line number Diff line change @@ -51,6 +51,5 @@ public void after() {
51
51
52
52
public void sleep () {
53
53
getInstrumentation ().waitForIdleSync ();
54
-
55
54
}
56
55
}
Original file line number Diff line number Diff line change 74
74
import com .bald .uriah .baldphone .views .home .HomePage1 ;
75
75
import com .bald .uriah .baldphone .views .home .NotesView ;
76
76
77
+ import org .acra .ACRA ;
78
+
77
79
import java .lang .ref .WeakReference ;
78
80
import java .util .ArrayList ;
79
81
import java .util .List ;
@@ -199,7 +201,14 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
199
201
// .show();
200
202
// }
201
203
202
- startService (new Intent (this , NotificationListenerService .class ));
204
+ try {
205
+ startService (new Intent (this , NotificationListenerService .class ));
206
+ } catch (Exception e ) {
207
+ Log .e (TAG , S .str (e .getMessage ()));
208
+ e .printStackTrace ();
209
+ ACRA .getErrorReporter ().handleSilentException (new RuntimeException ("Can't start notification listener service" , e ));
210
+ BaldToast .from (this ).setType (BaldToast .TYPE_ERROR ).setText ("Could not start Notification Listener Service!" ).show ();
211
+ }
203
212
new UpdateApps (this ).execute (this .getApplicationContext ());
204
213
205
214
audioManager = (AudioManager ) getSystemService (AUDIO_SERVICE );
You can’t perform that action at this time.
0 commit comments