зеркало из https://github.com/mozilla/gecko-dev.git
Bug 942281 - Rename mLayout -> mPanelLayout in DyanmicPanel (r=lucasr)
This commit is contained in:
Родитель
55675f1dea
Коммит
a9f5ab15f2
|
@ -59,7 +59,7 @@ public class DynamicPanel extends HomeFragment
|
||||||
private static final String DATASET_REQUEST = "dataset_request";
|
private static final String DATASET_REQUEST = "dataset_request";
|
||||||
|
|
||||||
// The panel layout associated with this panel
|
// The panel layout associated with this panel
|
||||||
private PanelLayout mLayout;
|
private PanelLayout mPanelLayout;
|
||||||
|
|
||||||
// The configuration associated with this panel
|
// The configuration associated with this panel
|
||||||
private PanelConfig mPanelConfig;
|
private PanelConfig mPanelConfig;
|
||||||
|
@ -108,7 +108,7 @@ public class DynamicPanel extends HomeFragment
|
||||||
switch(mPanelConfig.getLayoutType()) {
|
switch(mPanelConfig.getLayoutType()) {
|
||||||
case FRAME:
|
case FRAME:
|
||||||
final PanelDatasetHandler datasetHandler = new PanelDatasetHandler();
|
final PanelDatasetHandler datasetHandler = new PanelDatasetHandler();
|
||||||
mLayout = new FramePanelLayout(getActivity(), mPanelConfig, datasetHandler, mUrlOpenListener);
|
mPanelLayout = new FramePanelLayout(getActivity(), mPanelConfig, datasetHandler, mUrlOpenListener);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -117,7 +117,7 @@ public class DynamicPanel extends HomeFragment
|
||||||
|
|
||||||
Log.d(LOGTAG, "Created layout of type: " + mPanelConfig.getLayoutType());
|
Log.d(LOGTAG, "Created layout of type: " + mPanelConfig.getLayoutType());
|
||||||
|
|
||||||
return mLayout;
|
return mPanelLayout;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -129,7 +129,7 @@ public class DynamicPanel extends HomeFragment
|
||||||
@Override
|
@Override
|
||||||
public void onDestroyView() {
|
public void onDestroyView() {
|
||||||
super.onDestroyView();
|
super.onDestroyView();
|
||||||
mLayout = null;
|
mPanelLayout = null;
|
||||||
|
|
||||||
GeckoAppShell.unregisterEventListener("HomePanels:RefreshDataset", this);
|
GeckoAppShell.unregisterEventListener("HomePanels:RefreshDataset", this);
|
||||||
}
|
}
|
||||||
|
@ -159,7 +159,7 @@ public class DynamicPanel extends HomeFragment
|
||||||
@Override
|
@Override
|
||||||
protected void load() {
|
protected void load() {
|
||||||
Log.d(LOGTAG, "Loading layout");
|
Log.d(LOGTAG, "Loading layout");
|
||||||
mLayout.load();
|
mPanelLayout.load();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -312,15 +312,15 @@ public class DynamicPanel extends HomeFragment
|
||||||
final DatasetRequest request = getRequestFromLoader(loader);
|
final DatasetRequest request = getRequestFromLoader(loader);
|
||||||
|
|
||||||
Log.d(LOGTAG, "Finished loader for request: " + request);
|
Log.d(LOGTAG, "Finished loader for request: " + request);
|
||||||
mLayout.deliverDataset(request, cursor);
|
mPanelLayout.deliverDataset(request, cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onLoaderReset(Loader<Cursor> loader) {
|
public void onLoaderReset(Loader<Cursor> loader) {
|
||||||
final DatasetRequest request = getRequestFromLoader(loader);
|
final DatasetRequest request = getRequestFromLoader(loader);
|
||||||
Log.d(LOGTAG, "Resetting loader for request: " + request);
|
Log.d(LOGTAG, "Resetting loader for request: " + request);
|
||||||
if (mLayout != null) {
|
if (mPanelLayout != null) {
|
||||||
mLayout.releaseDataset(request.getDatasetId());
|
mPanelLayout.releaseDataset(request.getDatasetId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче