mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
parent
aa84dedd64
commit
88eedc3506
5 changed files with 17 additions and 17 deletions
|
|
@ -86,7 +86,7 @@ class LoginActivity : AccountAuthenticatorActivity() {
|
||||||
loginPassword.addTextChangedListener(textWatcher)
|
loginPassword.addTextChangedListener(textWatcher)
|
||||||
loginTwoFactor.addTextChangedListener(textWatcher)
|
loginTwoFactor.addTextChangedListener(textWatcher)
|
||||||
|
|
||||||
// skipLogin.setOnClickListener { skipLogin() }
|
skipLogin.setOnClickListener { skipLogin() }
|
||||||
forgotPassword.setOnClickListener { forgotPassword() }
|
forgotPassword.setOnClickListener { forgotPassword() }
|
||||||
aboutPrivacyPolicy.setOnClickListener { onPrivacyPolicyClicked() }
|
aboutPrivacyPolicy.setOnClickListener { onPrivacyPolicyClicked() }
|
||||||
signUpButton.setOnClickListener { signUp() }
|
signUpButton.setOnClickListener { signUp() }
|
||||||
|
|
|
||||||
|
|
@ -478,13 +478,13 @@ after opening the app.
|
||||||
* @param longitude current longitude of Nearby map
|
* @param longitude current longitude of Nearby map
|
||||||
*/
|
*/
|
||||||
fun loadExploreMapFromNearby(zoom: Double, latitude: Double, longitude: Double) {
|
fun loadExploreMapFromNearby(zoom: Double, latitude: Double, longitude: Double) {
|
||||||
// val bundle = Bundle()
|
val bundle = Bundle()
|
||||||
// bundle.putDouble("prev_zoom", zoom)
|
bundle.putDouble("prev_zoom", zoom)
|
||||||
// bundle.putDouble("prev_latitude", latitude)
|
bundle.putDouble("prev_latitude", latitude)
|
||||||
// bundle.putDouble("prev_longitude", longitude)
|
bundle.putDouble("prev_longitude", longitude)
|
||||||
//
|
|
||||||
// loadFragment(ExploreFragment.newInstance(), false, bundle)
|
loadFragment(ExploreFragment.newInstance(), false, bundle)
|
||||||
// setSelectedItemId(NavTab.EXPLORE.code())
|
setSelectedItemId(NavTab.EXPLORE.code())
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -67,9 +67,9 @@ class MoreBottomSheetFragment : BottomSheetDialogFragment() {
|
||||||
): View? {
|
): View? {
|
||||||
binding = FragmentMoreBottomSheetBinding.inflate(inflater, container, false)
|
binding = FragmentMoreBottomSheetBinding.inflate(inflater, container, false)
|
||||||
|
|
||||||
// if (store.getBoolean(CommonsApplication.IS_LIMITED_CONNECTION_MODE_ENABLED)) {
|
if (store.getBoolean(CommonsApplication.IS_LIMITED_CONNECTION_MODE_ENABLED)) {
|
||||||
binding?.morePeerReview?.visibility = View.GONE
|
binding?.morePeerReview?.visibility = View.GONE
|
||||||
// }
|
}
|
||||||
|
|
||||||
binding?.apply {
|
binding?.apply {
|
||||||
moreLogout.setOnClickListener { onLogoutClicked() }
|
moreLogout.setOnClickListener { onLogoutClicked() }
|
||||||
|
|
|
||||||
|
|
@ -29,11 +29,11 @@ enum class NavTab(
|
||||||
return NearbyParentFragment.newInstance()
|
return NearbyParentFragment.newInstance()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// EXPLORE(R.string.navigation_item_explore, R.drawable.ic_globe) {
|
EXPLORE(R.string.navigation_item_explore, R.drawable.ic_globe) {
|
||||||
// override fun newInstance(): Fragment {
|
override fun newInstance(): Fragment {
|
||||||
// return ExploreFragment.newInstance()
|
return ExploreFragment.newInstance()
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
BOOKMARKS(R.string.bookmarks, R.drawable.ic_round_star_border_24px) {
|
BOOKMARKS(R.string.bookmarks, R.drawable.ic_round_star_border_24px) {
|
||||||
override fun newInstance(): Fragment {
|
override fun newInstance(): Fragment {
|
||||||
return BookmarkFragment.newInstance()
|
return BookmarkFragment.newInstance()
|
||||||
|
|
|
||||||
|
|
@ -207,7 +207,7 @@
|
||||||
android:text="@string/forgot_password"
|
android:text="@string/forgot_password"
|
||||||
android:visibility="visible" />
|
android:visibility="visible" />
|
||||||
|
|
||||||
<!-- <fr.free.nrw.commons.ui.widget.HtmlTextView
|
<fr.free.nrw.commons.ui.widget.HtmlTextView
|
||||||
android:id="@+id/skip_login"
|
android:id="@+id/skip_login"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
|
@ -215,7 +215,7 @@
|
||||||
android:layout_marginBottom="@dimen/standard_gap"
|
android:layout_marginBottom="@dimen/standard_gap"
|
||||||
android:gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
||||||
android:text="@string/skip_login"
|
android:text="@string/skip_login"
|
||||||
android:visibility="visible" />-->
|
android:visibility="visible" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue