Bug 1062859 - Part 0 - Bookmarks panel cleanups. r?ahunt draft
authorJan Henning <jh+bugzilla@buttercookie.de>
Mon, 23 Jan 2017 19:23:55 +0100
changeset 468112 64488a3957cced57a6fe3f1e1b88c837bae243b2
parent 466327 8ccda93dabb3d72ab73685f007ded2159d4438a2
child 468113 d8d1d22ba11fafe559ac0d2f911e4a0c0c78dd32
push id43355
push usermozilla@buttercookie.de
push dateMon, 30 Jan 2017 19:01:15 +0000
reviewersahunt
bugs1062859
milestone54.0a1
Bug 1062859 - Part 0 - Bookmarks panel cleanups. r?ahunt Fix up javadoc so it matches the actual function parameter and remove unneeded imports. MozReview-Commit-ID: I91NuqLlpL1
mobile/android/base/java/org/mozilla/gecko/home/BookmarksListAdapter.java
mobile/android/base/java/org/mozilla/gecko/home/BookmarksPanel.java
--- a/mobile/android/base/java/org/mozilla/gecko/home/BookmarksListAdapter.java
+++ b/mobile/android/base/java/org/mozilla/gecko/home/BookmarksListAdapter.java
@@ -254,17 +254,17 @@ class BookmarksListAdapter extends Multi
         // Default to returning normal item type.
         return VIEW_TYPE_BOOKMARK_ITEM;
     }
 
     /**
      * Get the title of the folder given a cursor moved to the position.
      *
      * @param context The context of the view.
-     * @param cursor A cursor moved to the required position.
+     * @param c A cursor moved to the required position.
      * @return The title of the folder at the position.
      */
     public String getFolderTitle(Context context, Cursor c) {
         String guid = c.getString(c.getColumnIndexOrThrow(Bookmarks.GUID));
 
         // If we don't have a special GUID, just return the folder title from the DB.
         if (guid == null || guid.length() == 12) {
             return c.getString(c.getColumnIndexOrThrow(Bookmarks.TITLE));
--- a/mobile/android/base/java/org/mozilla/gecko/home/BookmarksPanel.java
+++ b/mobile/android/base/java/org/mozilla/gecko/home/BookmarksPanel.java
@@ -4,17 +4,16 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 package org.mozilla.gecko.home;
 
 import java.util.ArrayList;
 import java.util.LinkedList;
 import java.util.List;
 
-import org.mozilla.gecko.GeckoProfile;
 import org.mozilla.gecko.GeckoSharedPrefs;
 import org.mozilla.gecko.R;
 import org.mozilla.gecko.db.BrowserContract;
 import org.mozilla.gecko.db.BrowserContract.Bookmarks;
 import org.mozilla.gecko.db.BrowserDB;
 import org.mozilla.gecko.distribution.PartnerBookmarksProviderProxy;
 import org.mozilla.gecko.home.BookmarksListAdapter.FolderInfo;
 import org.mozilla.gecko.home.BookmarksListAdapter.OnRefreshFolderListener;
@@ -25,17 +24,16 @@ import org.mozilla.gecko.preferences.Gec
 
 import android.app.Activity;
 import android.content.ContentResolver;
 import android.content.Context;
 import android.content.res.Configuration;
 import android.database.Cursor;
 import android.database.MergeCursor;
 import android.os.Bundle;
-import android.os.Parcelable;
 import android.support.annotation.NonNull;
 import android.support.v4.app.LoaderManager;
 import android.support.v4.content.Loader;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
 import android.view.ViewStub;
 import android.widget.ImageView;