Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4398b0b8 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Add looper to the thread to fix system_server crash"

parents e32ca146 35b07a73
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ import android.os.storage.StorageVolume;
import android.util.Log;
import android.view.WindowManager;
import android.widget.Toast;
import android.os.Looper;

import com.android.internal.R;
import java.util.ArrayList;
@@ -255,6 +256,7 @@ public class ExternalStorageFormatter extends Service
                            mIsFormatSuccess = true;
                            success = true;
                        } catch (Exception e) {
                            Looper.prepare();
                            Toast.makeText(ExternalStorageFormatter.this,
                                    R.string.format_error, Toast.LENGTH_LONG).show();
                        }