mirror of
https://github.com/MatomoCamp/matomocamp-companion-android.git
synced 2024-09-19 16:13:46 +02:00
Misc. small cleanups
This commit is contained in:
parent
c54b339dc2
commit
b1d823d245
3 changed files with 10 additions and 8 deletions
|
@ -82,8 +82,7 @@ public class MainActivity extends ActionBarActivity implements ListView.OnItemCl
|
|||
private final int iconResId;
|
||||
private final boolean keep;
|
||||
|
||||
private Section(Class<? extends Fragment> fragmentClass, @StringRes int titleResId,
|
||||
@DrawableRes int iconResId, boolean keep) {
|
||||
private Section(Class<? extends Fragment> fragmentClass, int titleResId, int iconResId, boolean keep) {
|
||||
this.fragmentClassName = fragmentClass.getName();
|
||||
this.titleResId = titleResId;
|
||||
this.iconResId = iconResId;
|
||||
|
@ -94,10 +93,12 @@ public class MainActivity extends ActionBarActivity implements ListView.OnItemCl
|
|||
return fragmentClassName;
|
||||
}
|
||||
|
||||
@StringRes
|
||||
public int getTitleResId() {
|
||||
return titleResId;
|
||||
}
|
||||
|
||||
@DrawableRes
|
||||
public int getIconResId() {
|
||||
return iconResId;
|
||||
}
|
||||
|
@ -453,10 +454,10 @@ public class MainActivity extends ActionBarActivity implements ListView.OnItemCl
|
|||
|
||||
private class MainMenuAdapter extends BaseAdapter {
|
||||
|
||||
private Section[] sections = Section.values();
|
||||
private LayoutInflater inflater;
|
||||
private int currentSectionForegroundColor;
|
||||
private int currentSectionBackgroundColor;
|
||||
private final Section[] sections = Section.values();
|
||||
private final LayoutInflater inflater;
|
||||
private final int currentSectionForegroundColor;
|
||||
private final int currentSectionBackgroundColor;
|
||||
|
||||
public MainMenuAdapter(LayoutInflater inflater) {
|
||||
this.inflater = inflater;
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
<android.support.v4.widget.DrawerLayout
|
||||
android:id="@+id/drawer_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1">
|
||||
|
||||
<!-- Main content view -->
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<item name="android:scrollViewStyle">@style/ScrollView.Fosdem</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.NoActionBar" tools:ignore="newApi">
|
||||
<style name="AppTheme.NoActionBar">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
<!-- Allows the action mode icons to be shown on top of the Toolbar -->
|
||||
|
|
Loading…
Reference in a new issue