Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
885e37d25e
11 changed files with 31 additions and 20 deletions
|
@ -9,7 +9,6 @@ import net.osmand.plus.OsmandPlugin;
|
|||
import net.osmand.plus.R;
|
||||
import net.osmand.plus.activities.MapActivity;
|
||||
import net.osmand.plus.dashboard.DashBaseFragment;
|
||||
import net.osmand.plus.myplaces.FavoritesActivity;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Bundle;
|
||||
import android.support.annotation.Nullable;
|
||||
|
@ -39,6 +38,7 @@ public class DashAudioVideoNotesFragment extends DashBaseFragment {
|
|||
@Override
|
||||
public void onClick(View view) {
|
||||
startFavoritesActivity(AudioVideoNotesPlugin.NOTES_TAB);
|
||||
closeDashboard();
|
||||
}
|
||||
});
|
||||
return view;
|
||||
|
|
|
@ -43,6 +43,10 @@ public abstract class DashBaseFragment extends Fragment {
|
|||
onCloseDash();
|
||||
}
|
||||
|
||||
public void closeDashboard() {
|
||||
dashboard.hideDashboard(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public final void onResume() {
|
||||
// use on open update
|
||||
|
|
|
@ -40,6 +40,7 @@ public class DashFavoritesFragment extends DashLocationFragment {
|
|||
@Override
|
||||
public void onClick(View view) {
|
||||
startFavoritesActivity(FavoritesActivity.FAV_TAB);
|
||||
closeDashboard();
|
||||
}
|
||||
});
|
||||
return view;
|
||||
|
|
|
@ -37,6 +37,7 @@ public class DashPluginsFragment extends DashBaseFragment {
|
|||
@Override
|
||||
public void onClick(View view) {
|
||||
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(plugin.getInstallURL())));
|
||||
closeDashboard();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -48,6 +49,7 @@ public class DashPluginsFragment extends DashBaseFragment {
|
|||
Intent intent = new Intent(getActivity(), PluginActivity.class);
|
||||
intent.putExtra(PluginActivity.EXTRA_PLUGIN_ID, plugin.getId());
|
||||
startActivity(intent);
|
||||
closeDashboard();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -61,6 +63,7 @@ public class DashPluginsFragment extends DashBaseFragment {
|
|||
@Override
|
||||
public void onClick(View view) {
|
||||
startActivity(new Intent(getActivity(), getMyApplication().getAppCustomization().getPluginsActivity()));
|
||||
closeDashboard();
|
||||
}
|
||||
});
|
||||
initPlugins();
|
||||
|
|
|
@ -52,6 +52,7 @@ public class DashRecentsFragment extends DashLocationFragment {
|
|||
search.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
|
||||
getMyApplication().getSettings().SEARCH_TAB.set(SearchActivity.HISTORY_TAB_INDEX);
|
||||
activity.startActivity(search);
|
||||
closeDashboard();
|
||||
}
|
||||
});
|
||||
return view;
|
||||
|
|
|
@ -56,7 +56,7 @@ public class DashSearchFragment extends DashBaseFragment {
|
|||
btn.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
dashboard.hideDashboard(false);
|
||||
closeDashboard();
|
||||
searchActivity(activity, appCustomization, SearchActivity.POI_TAB_INDEX);
|
||||
}
|
||||
});
|
||||
|
@ -67,7 +67,7 @@ public class DashSearchFragment extends DashBaseFragment {
|
|||
btn.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
dashboard.hideDashboard(false);
|
||||
closeDashboard();
|
||||
searchActivity(activity, appCustomization, SearchActivity.ADDRESS_TAB_INDEX);
|
||||
}
|
||||
});
|
||||
|
@ -78,7 +78,7 @@ public class DashSearchFragment extends DashBaseFragment {
|
|||
btn.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
dashboard.hideDashboard(false);
|
||||
closeDashboard();
|
||||
searchActivity(activity, appCustomization, SearchActivity.LOCATION_TAB_INDEX);
|
||||
}
|
||||
});
|
||||
|
@ -88,7 +88,7 @@ public class DashSearchFragment extends DashBaseFragment {
|
|||
(view.findViewById(R.id.recents)).setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
dashboard.hideDashboard(false);
|
||||
closeDashboard();
|
||||
searchActivity(activity, appCustomization, SearchActivity.HISTORY_TAB_INDEX);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -56,6 +56,7 @@ public class DashUpdatesFragment extends DashBaseFragment {
|
|||
intent.putExtra(DownloadActivity.TAB_TO_OPEN, DownloadActivity.UPDATES_TAB);
|
||||
// intent.putExtra(DownloadActivity.SINGLE_TAB, true);
|
||||
getActivity().startActivity(intent);
|
||||
closeDashboard();
|
||||
}
|
||||
});
|
||||
return view;
|
||||
|
|
|
@ -60,6 +60,7 @@ public class DashTrackFragment extends DashBaseFragment {
|
|||
getMyApplication().getSettings().FAVORITES_TAB.set(FavoritesActivity.GPX_TAB);
|
||||
favorites.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
|
||||
activity.startActivity(favorites);
|
||||
closeDashboard();
|
||||
}
|
||||
});
|
||||
return view;
|
||||
|
|
|
@ -46,6 +46,7 @@ public class DashOsmEditsFragment extends DashBaseFragment implements OsmEditsUp
|
|||
@Override
|
||||
public void onClick(View view) {
|
||||
startFavoritesActivity(R.string.osm_edits);
|
||||
closeDashboard();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -362,6 +362,7 @@ public class DashOsMoFragment extends DashLocationFragment implements OsMoGroups
|
|||
private void launchOsMoGroupsActivity() {
|
||||
Intent intent = new Intent(getActivity(), OsMoGroupsActivity.class);
|
||||
getActivity().startActivity(intent);
|
||||
closeDashboard();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1,17 +1,7 @@
|
|||
package net.osmand.plus.parkingpoint;
|
||||
|
||||
import android.app.AlertDialog;
|
||||
import android.content.DialogInterface;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Typeface;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Button;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
import java.util.Calendar;
|
||||
|
||||
import net.osmand.data.LatLon;
|
||||
import net.osmand.data.PointDescription;
|
||||
import net.osmand.plus.OsmandPlugin;
|
||||
|
@ -19,9 +9,17 @@ import net.osmand.plus.R;
|
|||
import net.osmand.plus.activities.MapActivity;
|
||||
import net.osmand.plus.dashboard.DashLocationFragment;
|
||||
import net.osmand.plus.helpers.FontCache;
|
||||
import net.osmand.plus.views.DirectionDrawable;
|
||||
|
||||
import java.util.Calendar;
|
||||
import android.app.AlertDialog;
|
||||
import android.content.DialogInterface;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Typeface;
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Button;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
|
||||
/**
|
||||
* Created by Denis on
|
||||
|
|
Loading…
Reference in a new issue