|
@@ -4,11 +4,8 @@ package com.sikey.veryfit.k2.ui.main;
|
|
|
import android.content.Intent;
|
|
|
import android.graphics.Color;
|
|
|
import android.graphics.drawable.ColorDrawable;
|
|
|
-import android.net.Uri;
|
|
|
import android.os.Build;
|
|
|
import android.os.Bundle;
|
|
|
-import androidx.fragment.app.DialogFragment;
|
|
|
-import androidx.fragment.app.Fragment;
|
|
|
import android.view.Gravity;
|
|
|
import android.view.LayoutInflater;
|
|
|
import android.view.View;
|
|
@@ -16,6 +13,9 @@ import android.view.ViewGroup;
|
|
|
import android.view.Window;
|
|
|
import android.view.WindowManager;
|
|
|
|
|
|
+import androidx.fragment.app.DialogFragment;
|
|
|
+import androidx.fragment.app.Fragment;
|
|
|
+
|
|
|
import com.google.android.gms.maps.model.LatLng;
|
|
|
import com.sikey.veryfit.R;
|
|
|
import com.sikey.veryfit.app.DataManager;
|
|
@@ -91,7 +91,7 @@ public class NavigationDialogFragment extends DialogFragment {
|
|
|
Bundle savedInstanceState) {
|
|
|
|
|
|
final Window window = getDialog().getWindow();
|
|
|
- View view = inflater.inflate(R.layout.fragment_navigation_dialog, ((ViewGroup) window.findViewById(android.R.id.content)), false);//需要用android.R.id.content这个view
|
|
|
+ View view = inflater.inflate(R.layout.fragment_navigation_dialog, window.findViewById(android.R.id.content), false);//需要用android.R.id.content这个view
|
|
|
window.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
|
|
|
int height = getResources().getDimensionPixelSize(R.dimen.map_dialog_hieght);
|
|
|
window.setLayout(-1, height);
|
|
@@ -130,7 +130,7 @@ public class NavigationDialogFragment extends DialogFragment {
|
|
|
}
|
|
|
|
|
|
private void JumpToGoogleMap(){
|
|
|
- Intent intent = new Intent(Intent.ACTION_VIEW,
|
|
|
+/* Intent intent = new Intent(Intent.ACTION_VIEW,
|
|
|
Uri.parse("google.navigation:q="+mPoint.latitude+","+mPoint.longitude)
|
|
|
);
|
|
|
|
|
@@ -139,7 +139,7 @@ public class NavigationDialogFragment extends DialogFragment {
|
|
|
startActivity(intent);
|
|
|
}else {
|
|
|
ToastUtils.showLongToast(R.string.map_google_err);
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
|
|
|
private void JumpToBaidu() {
|