Skip to content

Picker close when screen orientation changes #29

Description

@akankshaldots

Picker is getting close when screen orientation changes even after setting android:configChanges

 <activity android:name=".activity.DashboardActivity"
        android:windowSoftInputMode="adjustPan"
        android:configChanges="orientation|screenSize"/>

   val today = Calendar.getInstance();
    val builder =  MonthPickerDialog.Builder(mContext, { selectedMonth, selectedYear ->
        run {
            mSelYear = selectedYear
            mSelMonth = selectedMonth
        }

    }, today.get(Calendar.YEAR), today.get(Calendar.MONTH))

    builder.setActivatedMonth(mSelMonth)
            .setActivatedYear(mSelYear)
            .setTitle("Select Month and Year")
            .build()
            .show()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions