Fixed navigation in map
This commit is contained in:
		@@ -82,9 +82,6 @@ public class GeofavoriteListFragment extends GeofavoritesFragment implements Sor
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        homeToolbar.setOnClickListener(view -> updateToolbars(false));
 | 
					        homeToolbar.setOnClickListener(view -> updateToolbars(false));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        AppCompatImageButton menuButton = v.findViewById(R.id.menu_button);
 | 
					 | 
				
			||||||
        menuButton.setOnClickListener(view -> ((MainActivity)requireActivity()).openDrawer());
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        // Setup list
 | 
					        // Setup list
 | 
				
			||||||
        int sortRule = SettingsManager.getGeofavoriteListSortBy(requireContext());
 | 
					        int sortRule = SettingsManager.getGeofavoriteListSortBy(requireContext());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,10 +3,13 @@ package it.danieleverducci.nextcloudmaps.fragments;
 | 
				
			|||||||
import android.content.DialogInterface;
 | 
					import android.content.DialogInterface;
 | 
				
			||||||
import android.content.Intent;
 | 
					import android.content.Intent;
 | 
				
			||||||
import android.os.Bundle;
 | 
					import android.os.Bundle;
 | 
				
			||||||
 | 
					import android.view.View;
 | 
				
			||||||
import android.widget.Toast;
 | 
					import android.widget.Toast;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import androidx.annotation.NonNull;
 | 
				
			||||||
import androidx.annotation.Nullable;
 | 
					import androidx.annotation.Nullable;
 | 
				
			||||||
import androidx.appcompat.app.AlertDialog;
 | 
					import androidx.appcompat.app.AlertDialog;
 | 
				
			||||||
 | 
					import androidx.appcompat.widget.AppCompatImageButton;
 | 
				
			||||||
import androidx.fragment.app.Fragment;
 | 
					import androidx.fragment.app.Fragment;
 | 
				
			||||||
import androidx.lifecycle.Observer;
 | 
					import androidx.lifecycle.Observer;
 | 
				
			||||||
import androidx.lifecycle.ViewModelProvider;
 | 
					import androidx.lifecycle.ViewModelProvider;
 | 
				
			||||||
@@ -30,6 +33,7 @@ public abstract class GeofavoritesFragment extends Fragment {
 | 
				
			|||||||
    public void onCreate(@Nullable Bundle savedInstanceState) {
 | 
					    public void onCreate(@Nullable Bundle savedInstanceState) {
 | 
				
			||||||
        super.onCreate(savedInstanceState);
 | 
					        super.onCreate(savedInstanceState);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        // Load data
 | 
				
			||||||
        mGeofavoritesFragmentViewModel = new ViewModelProvider(this).get(GeofavoritesFragmentViewModel.class);
 | 
					        mGeofavoritesFragmentViewModel = new ViewModelProvider(this).get(GeofavoritesFragmentViewModel.class);
 | 
				
			||||||
        mGeofavoritesFragmentViewModel.init(requireContext());
 | 
					        mGeofavoritesFragmentViewModel.init(requireContext());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -43,6 +47,15 @@ public abstract class GeofavoritesFragment extends Fragment {
 | 
				
			|||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
 | 
					    public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
 | 
				
			||||||
 | 
					        super.onViewCreated(view, savedInstanceState);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        // Set views
 | 
				
			||||||
 | 
					        AppCompatImageButton menuButton = view.findViewById(R.id.menu_button);
 | 
				
			||||||
 | 
					        menuButton.setOnClickListener(v -> ((MainActivity)requireActivity()).openDrawer());
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public void onStart() {
 | 
					    public void onStart() {
 | 
				
			||||||
        super.onStart();
 | 
					        super.onStart();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -68,9 +68,11 @@
 | 
				
			|||||||
                        android:id="@+id/app_name"
 | 
					                        android:id="@+id/app_name"
 | 
				
			||||||
                        android:layout_width="wrap_content"
 | 
					                        android:layout_width="wrap_content"
 | 
				
			||||||
                        android:layout_height="wrap_content"
 | 
					                        android:layout_height="wrap_content"
 | 
				
			||||||
 | 
					                        android:layout_marginRight="20dp"
 | 
				
			||||||
                        android:layout_centerVertical="true"
 | 
					                        android:layout_centerVertical="true"
 | 
				
			||||||
                        android:layout_toEndOf="@id/logo"
 | 
					                        android:layout_toEndOf="@id/logo"
 | 
				
			||||||
                        android:ellipsize="end"
 | 
					                        android:ellipsize="end"
 | 
				
			||||||
 | 
					                        android:lines="2"
 | 
				
			||||||
                        android:fontFamily="sans-serif-light"
 | 
					                        android:fontFamily="sans-serif-light"
 | 
				
			||||||
                        android:gravity="center_vertical"
 | 
					                        android:gravity="center_vertical"
 | 
				
			||||||
                        android:text="@string/app_name"
 | 
					                        android:text="@string/app_name"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user