Loading src/com/android/launcher3/util/ConfigMonitor.java +6 −2 Original line number Diff line number Diff line Loading @@ -111,8 +111,12 @@ public class ConfigMonitor extends BroadcastReceiver implements DisplayListener private void killProcess() { Log.d(TAG, "restarting launcher"); try { mContext.unregisterReceiver(this); mContext.getSystemService(DisplayManager.class).unregisterDisplayListener(this); } catch (Exception e) { // We are going to die anyway, ignore any error die to race condition in registering. } android.os.Process.killProcess(android.os.Process.myPid()); } Loading Loading
src/com/android/launcher3/util/ConfigMonitor.java +6 −2 Original line number Diff line number Diff line Loading @@ -111,8 +111,12 @@ public class ConfigMonitor extends BroadcastReceiver implements DisplayListener private void killProcess() { Log.d(TAG, "restarting launcher"); try { mContext.unregisterReceiver(this); mContext.getSystemService(DisplayManager.class).unregisterDisplayListener(this); } catch (Exception e) { // We are going to die anyway, ignore any error die to race condition in registering. } android.os.Process.killProcess(android.os.Process.myPid()); } Loading