Skip to content

Commit

Permalink
Develop (#51)
Browse files Browse the repository at this point in the history
* fix map inflate.
* update version to 0.2.1
* feedback changes

Co-authored-by: Nkgohil <nikhil.gohil@mindinventory.com>
  • Loading branch information
sanjay-mi and Nkgohil007 authored Mar 3, 2022
1 parent 0e23d99 commit ad7473c
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion vanillaplacepicker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ android {
minSdkVersion 19
targetSdkVersion 32
versionCode 14
versionName "0.2.0"
versionName "0.2.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,12 @@ class VanillaMapActivity : VanillaBaseViewModelActivity<VanillaMapViewModel>(),
// If user interaction was interrupted, the permission request is cancelled and you receive empty arrays.
Log.d(TAG, resources.getString(R.string.user_interaction_was_cancelled))
}
grantResults[0] == PackageManager.PERMISSION_GRANTED -> startLocationUpdates()
grantResults[0] == PackageManager.PERMISSION_GRANTED -> {
if (!isRequestedWithLocation) {
startLocationUpdates()
}

}
else -> showAlertDialog(
R.string.missing_permission_message,
R.string.missing_permission_title,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:theme="@style/Theme.MaterialComponents.DayNight.DarkActionBar">

<fragment
<androidx.fragment.app.FragmentContainerView
android:id="@+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="0dp"
Expand Down
2 changes: 1 addition & 1 deletion vanillaplacepicker/src/main/res/layout/custom_toolbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_done_black_24dp" />

<TextView
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tvAddress"
android:layout_width="0dp"
android:layout_height="wrap_content"
Expand Down
1 change: 0 additions & 1 deletion vanillaplacepicker/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<string name="ok">حسنا</string>
<string name="cancel">إلغاء</string>
<string name="permission">الإذن</string>

<!--Map Activity-->
<string name="searching">الإذن…</string>

Expand Down
1 change: 1 addition & 0 deletions vanillaplacepicker/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<string name="cancel">Cancelar</string>
<string name="permission">Permiso</string>


<!--Map Activity-->
<string name="searching">Buscando…</string>

Expand Down
1 change: 1 addition & 0 deletions vanillaplacepicker/src/main/res/values-hi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<string name="cancel">रद्द करना</string>
<string name="permission">अनुमति</string>


<!--Map Activity-->
<string name="searching">खोज कर…</string>

Expand Down
1 change: 0 additions & 1 deletion vanillaplacepicker/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<string name="ok">OK</string>
<string name="cancel">Cancel</string>
<string name="permission">Permission</string>

<!--Map Activity-->
<string name="searching">Searching…</string>

Expand Down

0 comments on commit ad7473c

Please sign in to comment.