Skip to content

Commit

Permalink
Merge branch 'release/v5.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed Apr 11, 2016
2 parents 56cf945 + fe4dbd2 commit fbb3d65
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 108 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ android:
- tools

# The BuildTools version used by your project
- build-tools-23.0.2
- build-tools-23.0.3

# The SDK version used to compile your project
- android-23

# Additional components
- extra-google-m2repository
- extra-android-m2repository
- extra-android-m2repository
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ You can find some frequently asked questions and other resources in the [WIKI /
##1. Provide the gradle dependency

```gradle
compile('com.mikepenz:materialdrawer:5.1.9@aar') {
compile('com.mikepenz:materialdrawer:5.2.0@aar') {
transitive = true
}
```
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
defaultConfig {
minSdkVersion 10
targetSdkVersion 23
versionCode 519
versionName "5.1.9"
versionCode 520
versionName "5.2.0"

applicationVariants.all { variant ->
variant.outputs.each { output ->
Expand Down
8 changes: 2 additions & 6 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<activity
android:name=".DrawerActivity"
android:label="@string/app_name"
android:theme="@style/MaterialDrawerTheme.Light.DarkToolbar.TranslucentStatus">
android:theme="@style/MaterialDrawerTheme.Light.DarkToolbar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand All @@ -31,7 +31,7 @@
android:theme="@style/MaterialDrawerTheme.ActionBar" />
<activity
android:name=".MenuDrawerActivity"
android:theme="@style/MaterialDrawerTheme.Light.DarkToolbar.TranslucentStatus" />
android:theme="@style/MaterialDrawerTheme.Light.DarkToolbar" />
<activity
android:name=".NonTranslucentDrawerActivity"
android:theme="@style/MaterialDrawerTheme" />
Expand All @@ -41,10 +41,6 @@
<activity
android:name=".AdvancedActivity"
android:theme="@style/MaterialDrawerTheme.TranslucentStatus" />
<activity
android:name=".KeyboardUtilActivity"
android:theme="@style/MaterialDrawerTheme.Light.DarkToolbar.TranslucentStatus"
android:windowSoftInputMode="adjustResize|stateHidden" />
<activity
android:name=".EmbeddedDrawerActivity"
android:theme="@style/MaterialDrawerTheme" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ protected void onCreate(Bundle savedInstanceState) {
new PrimaryDrawerItem().withName(R.string.drawer_item_multi_drawer).withIcon(FontAwesome.Icon.faw_gamepad).withIdentifier(3),
new PrimaryDrawerItem().withName(R.string.drawer_item_non_translucent_status_drawer).withIcon(FontAwesome.Icon.faw_eye).withIdentifier(4),
new PrimaryDrawerItem().withDescription("A more complex sample").withName(R.string.drawer_item_advanced_drawer).withIcon(GoogleMaterial.Icon.gmd_adb).withIdentifier(5),
new PrimaryDrawerItem().withName(R.string.drawer_item_keyboard_util_drawer).withIcon(GoogleMaterial.Icon.gmd_labels).withIdentifier(6),
new SectionDrawerItem().withName(R.string.drawer_item_section_header),
new SecondaryDrawerItem().withName(R.string.drawer_item_open_source).withIcon(FontAwesome.Icon.faw_github),
new SecondaryDrawerItem().withName(R.string.drawer_item_contact).withIcon(GoogleMaterial.Icon.gmd_format_color_fill).withTag("Bullhorn")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ public boolean onProfileChanged(View view, IProfile profile, boolean current) {
new PrimaryDrawerItem().withName(R.string.drawer_item_multi_drawer).withDescription(R.string.drawer_item_multi_drawer_desc).withIcon(FontAwesome.Icon.faw_gamepad).withIdentifier(3).withSelectable(false),
new PrimaryDrawerItem().withName(R.string.drawer_item_non_translucent_status_drawer).withDescription(R.string.drawer_item_non_translucent_status_drawer_desc).withIcon(FontAwesome.Icon.faw_eye).withIdentifier(4).withSelectable(false).withBadgeStyle(new BadgeStyle().withTextColor(Color.WHITE).withColorRes(R.color.md_red_700)),
new PrimaryDrawerItem().withName(R.string.drawer_item_advanced_drawer).withDescription(R.string.drawer_item_advanced_drawer_desc).withIcon(GoogleMaterial.Icon.gmd_adb).withIdentifier(5).withSelectable(false),
new PrimaryDrawerItem().withName(R.string.drawer_item_keyboard_util_drawer).withDescription(R.string.drawer_item_keyboard_util_drawer_desc).withIcon(GoogleMaterial.Icon.gmd_labels).withIdentifier(6).withSelectable(false),
new PrimaryDrawerItem().withName(R.string.drawer_item_embedded_drawer).withDescription(R.string.drawer_item_embedded_drawer_desc).withIcon(GoogleMaterial.Icon.gmd_battery).withIdentifier(7).withSelectable(false),
new PrimaryDrawerItem().withName(R.string.drawer_item_fullscreen_drawer).withDescription(R.string.drawer_item_fullscreen_drawer_desc).withIcon(GoogleMaterial.Icon.gmd_labels).withIdentifier(8).withSelectable(false),
new PrimaryDrawerItem().withName(R.string.drawer_item_custom_container_drawer).withDescription(R.string.drawer_item_custom_container_drawer_desc).withIcon(GoogleMaterial.Icon.gmd_my_location).withIdentifier(9).withSelectable(false),
Expand Down Expand Up @@ -167,8 +166,6 @@ public boolean onItemClick(View view, int position, IDrawerItem drawerItem) {
intent = new Intent(DrawerActivity.this, NonTranslucentDrawerActivity.class);
} else if (drawerItem.getIdentifier() == 5) {
intent = new Intent(DrawerActivity.this, AdvancedActivity.class);
} else if (drawerItem.getIdentifier() == 6) {
intent = new Intent(DrawerActivity.this, KeyboardUtilActivity.class);
} else if (drawerItem.getIdentifier() == 7) {
intent = new Intent(DrawerActivity.this, EmbeddedDrawerActivity.class);
} else if (drawerItem.getIdentifier() == 8) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ public boolean onProfileChanged(View view, IProfile profile, boolean current) {
new PrimaryDrawerItem().withName(R.string.drawer_item_multi_drawer).withIcon(FontAwesome.Icon.faw_gamepad).withIdentifier(3),
new PrimaryDrawerItem().withName(R.string.drawer_item_non_translucent_status_drawer).withIcon(FontAwesome.Icon.faw_eye).withIdentifier(4),
new PrimaryDrawerItem().withDescription("A more complex sample").withName(R.string.drawer_item_advanced_drawer).withIcon(GoogleMaterial.Icon.gmd_adb).withIdentifier(5),
new PrimaryDrawerItem().withName(R.string.drawer_item_keyboard_util_drawer).withIcon(GoogleMaterial.Icon.gmd_labels).withIdentifier(6),
new SectionDrawerItem().withName(R.string.drawer_item_section_header),
new SecondaryDrawerItem().withName(R.string.drawer_item_open_source).withIcon(FontAwesome.Icon.faw_github),
new SecondaryDrawerItem().withName(R.string.drawer_item_contact).withIcon(GoogleMaterial.Icon.gmd_format_color_fill).withTag("Bullhorn"),
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ public boolean onProfileChanged(View view, IProfile profile, boolean current) {
new PrimaryDrawerItem().withName(R.string.drawer_item_multi_drawer).withIcon(FontAwesome.Icon.faw_gamepad).withIdentifier(3),
new PrimaryDrawerItem().withName(R.string.drawer_item_non_translucent_status_drawer).withIcon(FontAwesome.Icon.faw_eye).withIdentifier(4),
new PrimaryDrawerItem().withDescription("A more complex sample").withName(R.string.drawer_item_advanced_drawer).withIcon(GoogleMaterial.Icon.gmd_adb).withIdentifier(5),
new PrimaryDrawerItem().withName(R.string.drawer_item_keyboard_util_drawer).withIcon(GoogleMaterial.Icon.gmd_labels).withIdentifier(6),
new SectionDrawerItem().withName(R.string.drawer_item_section_header),
new SecondaryDrawerItem().withName(R.string.drawer_item_open_source).withIcon(FontAwesome.Icon.faw_github),
new SecondaryDrawerItem().withName(R.string.drawer_item_contact).withIcon(GoogleMaterial.Icon.gmd_format_color_fill).withTag("Bullhorn"),
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
<string name="drawer_item_non_translucent_status_drawer_desc">Drawer below statusBar</string>
<string name="drawer_item_advanced_drawer">Advanced Drawer</string>
<string name="drawer_item_advanced_drawer_desc">More advanced drawer features</string>
<string name="drawer_item_keyboard_util_drawer">KeyboardUtil Drawer</string>
<string name="drawer_item_keyboard_util_drawer_desc">KeyboardUtil to (fix) adjustResize</string>
<string name="drawer_item_embedded_drawer">Embedded Drawer</string>
<string name="drawer_item_embedded_drawer_desc">Embed the drawer anywhere</string>
<string name="drawer_item_mini_drawer">MiniDrawer</string>
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Maven stuff
VERSION_NAME=5.1.9
VERSION_CODE=519
VERSION_NAME=5.2.0
VERSION_CODE=520
GROUP=com.mikepenz

POM_DESCRIPTION=MaterialDrawer Library
Expand Down
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
defaultConfig {
minSdkVersion 10
targetSdkVersion 23
versionCode 519
versionName '5.1.9'
versionCode 520
versionName '5.2.0'
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ public View build(Context ctx) {
mRecyclerView.setLayoutManager(new LinearLayoutManager(ctx));
//adapter
mAdapter = new FastItemAdapter<>();
mAdapter.withSelectable(true);
mAdapter.withAllowDeselection(false);
mRecyclerView.setAdapter(mAdapter);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<b>MaterialDrawer</b> the flexible, easy to use, all in one drawer library for your Android project.
]]>
</string>
<string name="library_materialdrawer_libraryVersion">5.1.9</string>
<string name="library_materialdrawer_libraryVersion">5.2.0</string>
<string name="library_materialdrawer_libraryWebsite">https://github.com/mikepenz/MaterialDrawer</string>
<string name="library_materialdrawer_licenseId">apache_2_0</string>
<string name="library_materialdrawer_isOpenSource">true</string>
Expand Down

0 comments on commit fbb3d65

Please sign in to comment.