Remove the code related to the compact layout
Compact layout preference is gone.
This commit is contained in:
parent
7458dff6e9
commit
c3fd3984b8
@ -82,7 +82,6 @@ public final class Preferences implements SharedPreferences.OnSharedPreferenceCh
|
|||||||
|
|
||||||
private final Map<String, Boolean> initialized = new HashMap<>();
|
private final Map<String, Boolean> initialized = new HashMap<>();
|
||||||
|
|
||||||
private final List<ChangeListener> compactLayoutListeners = new ArrayList<>();
|
|
||||||
private final List<ChangeListener> filterAppsRequiringRootListeners = new ArrayList<>();
|
private final List<ChangeListener> filterAppsRequiringRootListeners = new ArrayList<>();
|
||||||
private final List<ChangeListener> updateHistoryListeners = new ArrayList<>();
|
private final List<ChangeListener> updateHistoryListeners = new ArrayList<>();
|
||||||
private final List<ChangeListener> localRepoNameListeners = new ArrayList<>();
|
private final List<ChangeListener> localRepoNameListeners = new ArrayList<>();
|
||||||
@ -184,14 +183,6 @@ public final class Preferences implements SharedPreferences.OnSharedPreferenceCh
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void registerCompactLayoutChangeListener(ChangeListener listener) {
|
|
||||||
compactLayoutListeners.add(listener);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void unregisterCompactLayoutChangeListener(ChangeListener listener) {
|
|
||||||
compactLayoutListeners.remove(listener);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculate the cutoff date we'll use for What's New and Recently
|
* Calculate the cutoff date we'll use for What's New and Recently
|
||||||
* Updated...
|
* Updated...
|
||||||
|
@ -79,7 +79,6 @@ public abstract class AppListFragment extends ListFragment implements
|
|||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
Preferences.get().registerCompactLayoutChangeListener(this);
|
|
||||||
|
|
||||||
appAdapter = getAppListAdapter();
|
appAdapter = getAppListAdapter();
|
||||||
|
|
||||||
@ -111,12 +110,6 @@ public abstract class AppListFragment extends ListFragment implements
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onDestroy() {
|
|
||||||
super.onDestroy();
|
|
||||||
Preferences.get().unregisterCompactLayoutChangeListener(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
||||||
// Cursor is null in the swap list when touching the first item.
|
// Cursor is null in the swap list when touching the first item.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user