forked from organicmaps/organicmaps-tmp
[android] Fixed compilation, deleted comments, renamed methods
This commit is contained in:
parent
4fbd3e795b
commit
594d424d69
11 changed files with 12 additions and 18 deletions
|
@ -236,11 +236,9 @@
|
|||
android:configChanges="orientation|screenLayout|screenSize"
|
||||
android:label="@string/app_name"/>
|
||||
|
||||
<!--
|
||||
<activity
|
||||
android:name="com.mapswithme.maps.bookmarks.BookmarksCatalogActivity"
|
||||
android:label="@string/routes_and_bookmarks"/>
|
||||
-->
|
||||
|
||||
<activity-alias
|
||||
android:name="com.mapswithme.maps.DownloadResourcesActivity"
|
||||
|
|
|
@ -32,6 +32,8 @@ public abstract class AbstractLogBroadcastReceiver extends BroadcastReceiver
|
|||
+ !backgroundTracker().isForeground();
|
||||
LOGGER.i(getTag(), msg);
|
||||
CrashlyticsUtils.log(Log.INFO, getTag(), msg);
|
||||
assert intent != null;
|
||||
onReceiveInternal(context, intent);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
|
|
|
@ -29,7 +29,7 @@ public abstract class BaseBookmarkCategoryAdapter<V extends RecyclerView.ViewHol
|
|||
@NonNull
|
||||
public List<BookmarkCategory> getBookmarkCategories()
|
||||
{
|
||||
return BookmarkManager.INSTANCE.getOwnedCategoriesSnapshot().items();
|
||||
return BookmarkManager.INSTANCE.getOwnedCategoriesSnapshot().getItems();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -141,7 +141,8 @@ public class BookmarkCategoriesAdapter extends BaseBookmarkCategoryAdapter<Recyc
|
|||
private void bindSize(@NonNull CategoryViewHolder categoryHolder,
|
||||
@NonNull BookmarkCategory category)
|
||||
{
|
||||
categoryHolder.setSize(category.getPluralsCountTemplate(), category.getPluralsCount());
|
||||
BookmarkCategory.CountAndPlurals template = category.getPluralsCountTemplate();
|
||||
categoryHolder.setSize(template.getPlurals(), template.getCount());
|
||||
}
|
||||
|
||||
private void bindAuthor(@NonNull CategoryViewHolder categoryHolder,
|
||||
|
|
|
@ -13,7 +13,7 @@ import com.mapswithme.maps.widget.BookmarkBackupView;
|
|||
import com.mapswithme.util.UiUtils;
|
||||
|
||||
public class BookmarkCategoriesFragment extends BaseBookmarkCategoriesFragment
|
||||
implements Authorizer.SocialAuthCallback, TargetFragmentCallback
|
||||
implements TargetFragmentCallback
|
||||
{
|
||||
@Nullable
|
||||
private BookmarkBackupController mBackupController;
|
||||
|
|
|
@ -36,7 +36,7 @@ public class BookmarksCatalogFragment extends BaseWebViewMwmFragment
|
|||
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,
|
||||
@Nullable Bundle savedInstanceState)
|
||||
{
|
||||
View root = inflater.inflate(R.layout.bookmarks_catalog_frag, container, false);
|
||||
View root = inflater.inflate(R.layout.fragment_bookmarks_catalog, container, false);
|
||||
WebView webView = root.findViewById(getWebViewResId());
|
||||
initWebView(webView);
|
||||
webView.loadUrl(mCatalogUrl);
|
||||
|
@ -84,8 +84,8 @@ public class BookmarksCatalogFragment extends BaseWebViewMwmFragment
|
|||
|
||||
private boolean requestArchive(@NonNull WebView view, @NonNull String url) throws IOException
|
||||
{
|
||||
/* BookmarksDownloadManager dm = BookmarksDownloadManager.from(view.getContext());
|
||||
dm.enqueueRequest(url);*/
|
||||
BookmarksDownloadManager dm = BookmarksDownloadManager.from(view.getContext());
|
||||
dm.enqueueRequest(url);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ public enum BookmarksPageFactory
|
|||
@Override
|
||||
public Fragment instantiateFragment()
|
||||
{
|
||||
return new CachedBookmarksFragment();
|
||||
return new CachedBookmarkCategoriesFragment();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -19,6 +19,6 @@ public class CatalogBookmarkCategoriesAdapter extends BookmarkCategoriesAdapter
|
|||
@NonNull
|
||||
public List<BookmarkCategory> getBookmarkCategories()
|
||||
{
|
||||
return BookmarkManager.INSTANCE.getCatalogCategoriesSnapshot().items();
|
||||
return BookmarkManager.INSTANCE.getCatalogCategoriesSnapshot().getItems();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,8 +23,6 @@ import java.util.HashMap;
|
|||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static com.mapswithme.maps.widget.placepage.PlacePageButtons.PARTNERS_ITEMS;
|
||||
|
||||
public final class PlacePageButtons
|
||||
{
|
||||
private static final Map<Integer, PartnerItem> PARTNERS_ITEMS = new HashMap<Integer, PartnerItem>()
|
||||
|
|
|
@ -52,11 +52,6 @@ public class Utils
|
|||
private static final Logger LOGGER = LoggerFactory.INSTANCE.getLogger(LoggerFactory.Type.MISC);
|
||||
private static final String TAG = "Utils";
|
||||
|
||||
public static <T> T castTo(Object object)
|
||||
{
|
||||
return (T) object;
|
||||
}
|
||||
|
||||
public interface Proc<T>
|
||||
{
|
||||
void invoke(@NonNull T param);
|
||||
|
|
|
@ -89,7 +89,7 @@ bool IsBadCharForPath(strings::UniChar const & c)
|
|||
}
|
||||
|
||||
bool IsValidFilterType(BookmarkManager::CategoryFilterType const filter,
|
||||
bool const fromCatalog) const
|
||||
bool const fromCatalog)
|
||||
{
|
||||
switch (filter)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue