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

Commit e821a7af authored by liurong's avatar liurong Committed by android-build-merger
Browse files

Merge "Optimized Code: call direct method to get integer extra" am: b7fa4645

am: 7e51242c

Change-Id: Ide77fb0f05a8eeb2df4ab24dc1831cd734c95362
parents 895ac35f 7e51242c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -59,8 +59,7 @@ public class SimDialogActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        final Bundle extras = getIntent().getExtras();
        final int dialogType = extras.getInt(DIALOG_TYPE_KEY, INVALID_PICK);
        final int dialogType = getIntent().getIntExtra(DIALOG_TYPE_KEY, INVALID_PICK);

        switch (dialogType) {
            case DATA_PICK:
@@ -69,7 +68,7 @@ public class SimDialogActivity extends Activity {
                createDialog(this, dialogType).show();
                break;
            case PREFERRED_PICK:
                displayPreferredDialog(extras.getInt(PREFERRED_SIM));
                displayPreferredDialog(getIntent().getIntExtra(PREFERRED_SIM, 0));
                break;
            default:
                throw new IllegalArgumentException("Invalid dialog type " + dialogType + " sent.");