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

Commit 4e2ec489 authored by Tim Schumacher's avatar Tim Schumacher Committed by Michael Bestas
Browse files

RotationPolicy: Don't crash if configstore 1.1 isn't available

Change-Id: I77301ec8c72393daa0003ca310eee07b767d4e69
parent 42d29cda
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -38,6 +38,8 @@ import android.view.WindowManagerGlobal;

import com.android.internal.R;

import java.util.NoSuchElementException;

/**
 * Provides helper functions for configuring the display rotation policy.
 */
@@ -240,7 +242,7 @@ public final class RotationPolicy {
                case DisplayOrientation.ORIENTATION_270:
                    return Surface.ROTATION_270;
            }
        } catch (RemoteException e) {
        } catch (RemoteException | NoSuchElementException e) {
            // do nothing
        }