File tree Expand file tree Collapse file tree 2 files changed +16
-14
lines changed
app/src/main/java/com/samsung/microbit Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -44,30 +44,30 @@ public void logi(String message) {
44
44
45
45
@ Override
46
46
public void onCreate () {
47
- if (DEBUG ) {
48
- if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .P ) {
49
- StrictMode .setThreadPolicy (new StrictMode .ThreadPolicy .Builder ()
50
- .detectAll ()
51
- .penaltyLog ()
52
- // .penaltyFlashScreen ()
47
+ // if (DEBUG) {
48
+ // if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
49
+ // StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
50
+ // .detectAll()
51
+ // .permitDiskReads ()
52
+ // .penaltyLog ()
53
53
// .penaltyListener(Executors.newSingleThreadExecutor(), new StrictMode.OnThreadViolationListener() {
54
54
// @Override
55
55
// public void onThreadViolation(Violation v) {
56
56
// }
57
57
// })
58
- .build ());
59
-
60
- StrictMode .setVmPolicy (new StrictMode .VmPolicy .Builder ()
61
- .detectAll ()
62
- .penaltyLog ()
58
+ // .build());
59
+ //
60
+ // StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
61
+ // .detectAll()
62
+ // .penaltyLog()
63
63
// .penaltyListener(Executors.newSingleThreadExecutor(), new StrictMode.OnVmViolationListener() {
64
64
// @Override
65
65
// public void onVmViolation(Violation v) {
66
66
// }
67
67
// })
68
- .build ());
69
- }
70
- }
68
+ // .build());
69
+ // }
70
+ // }
71
71
super .onCreate ();
72
72
app = this ;
73
73
ProcessLifecycleOwner .get ().getLifecycle ().addObserver (this );
Original file line number Diff line number Diff line change @@ -2337,6 +2337,8 @@ public void onClick(View v) {
2337
2337
final int errorType = intent .getIntExtra (DfuBaseService .EXTRA_ERROR_TYPE , 0 );
2338
2338
String error_message = "" ;
2339
2339
2340
+ PopUp .hide ();
2341
+
2340
2342
switch (errorType ) {
2341
2343
case DfuBaseService .ERROR_TYPE_COMMUNICATION_STATE :
2342
2344
if ( errorCode == 0x0085 ) {
You can’t perform that action at this time.
0 commit comments