Fix
This commit is contained in:
parent
15f71076f4
commit
2794e4566f
3 changed files with 13 additions and 40 deletions
|
@ -14,6 +14,7 @@ import android.view.WindowManager;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
|
|
||||||
import net.osmand.plus.R;
|
import net.osmand.plus.R;
|
||||||
|
import net.osmand.plus.activities.MapActivity;
|
||||||
|
|
||||||
public class FirstUsageWelcomeFragment extends Fragment {
|
public class FirstUsageWelcomeFragment extends Fragment {
|
||||||
public static final String TAG = "FirstUsageWelcomeFragment";
|
public static final String TAG = "FirstUsageWelcomeFragment";
|
||||||
|
@ -33,32 +34,15 @@ public class FirstUsageWelcomeFragment extends Fragment {
|
||||||
skipButton.setOnClickListener(new View.OnClickListener() {
|
skipButton.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
/*
|
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
|
|
||||||
Window w = getActivity().getWindow();
|
|
||||||
w.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
FirstUsageWizardFragment.startWizard(getActivity());
|
FirstUsageWizardFragment.startWizard(getActivity());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
|
|
||||||
@Override
|
@Override
|
||||||
public void onResume() {
|
public void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
/*
|
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
|
|
||||||
Window w = getActivity().getWindow(); // in Activity's onCreate() for instance
|
|
||||||
w.setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS,
|
|
||||||
WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
|
|
||||||
}
|
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
*/
|
|
||||||
((MapActivity)getActivity()).disableDrawer();
|
((MapActivity)getActivity()).disableDrawer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,6 +50,5 @@ public class FirstUsageWelcomeFragment extends Fragment {
|
||||||
public void onPause() {
|
public void onPause() {
|
||||||
super.onPause();
|
super.onPause();
|
||||||
((MapActivity)getActivity()).enableDrawer();
|
((MapActivity)getActivity()).enableDrawer();
|
||||||
>>>>>>> 45cd256... Removed transparent status bar from first screen
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -434,6 +434,18 @@ public class FirstUsageWizardFragment extends Fragment implements OsmAndLocation
|
||||||
app.getAppInitializer().removeListener(this);
|
app.getAppInitializer().removeListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onResume() {
|
||||||
|
super.onResume();
|
||||||
|
((MapActivity)getActivity()).disableDrawer();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onPause() {
|
||||||
|
super.onPause();
|
||||||
|
((MapActivity)getActivity()).enableDrawer();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateLocation(final Location loc) {
|
public void updateLocation(final Location loc) {
|
||||||
final OsmandApplication app = getMyApplication();
|
final OsmandApplication app = getMyApplication();
|
||||||
|
|
|
@ -479,28 +479,6 @@ public class ContextMenuLayer extends OsmandMapLayer {
|
||||||
boolean res = showContextMenu(point, tileBox, false);
|
boolean res = showContextMenu(point, tileBox, false);
|
||||||
if (res) {
|
if (res) {
|
||||||
return true;
|
return true;
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
} else {
|
|
||||||
NativeOsmandLibrary nativeLib = NativeOsmandLibrary.getLoadedLibrary();
|
|
||||||
if (nativeLib != null) {
|
|
||||||
//RenderingContext rc = new RenderingContext(activity.getMyApplication());
|
|
||||||
MapRenderRepositories maps = activity.getMyApplication().getResourceManager().getRenderer();
|
|
||||||
RenderedObject[] renderedObjects = nativeLib.searchRenderedObjectsFromContext(maps.getVisibleRenderingContext(), (int)point.x, (int)point.y);
|
|
||||||
if (renderedObjects != null) {
|
|
||||||
Log.e("111", "found " + renderedObjects.length + " object(s) at x=" + point.x + " y=" + point.y);
|
|
||||||
for (RenderedObject renderedObject : renderedObjects) {
|
|
||||||
Log.e("111", "++++ object=" + renderedObject.getName());
|
|
||||||
for (Entry<String, String> entry : renderedObject.getTags().entrySet()) {
|
|
||||||
Log.e("111", "tag=" + entry.getKey() + " value=" + entry.getValue());
|
|
||||||
}
|
|
||||||
Log.e("111", "------------------");
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
Log.e("111", "objects not found at x=" + point.x + " y=" + point.y);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
>>>>>>> 45cd256... Removed transparent status bar from first screen
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue