Skip to content

Commit 1672435

Browse files
committed
Fixed screen rotation crashes bugs
1 parent 0380ba1 commit 1672435

File tree

6 files changed

+13
-5
lines changed

6 files changed

+13
-5
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
/build
88
/captures
99
.externalNativeBuild
10+
11+
.idea/instapk.xml
12+
instapk.log*

.idea/modules.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

awesomeimagepicker/src/main/AndroidManifest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313

1414
<activity
1515
android:name=".activities.AlbumSelectActivity"
16+
android:screenOrientation="portrait"
1617
android:hardwareAccelerated="true" />
1718
<activity
1819
android:name=".activities.ImageSelectActivity"
20+
android:screenOrientation="portrait"
1921
android:hardwareAccelerated="true" />
2022

2123
</application>

awesomeimagepicker/src/main/res/layout/activity_album_select.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
android:layout_height="match_parent">
66

77
<include
8-
android:id="@+id/toolbar"
8+
android:id="@+id/toolbar_image_picker"
99
layout="@layout/custom_gallery_toolbar"
1010
android:layout_width="match_parent"
1111
android:layout_height="wrap_content" />
@@ -29,7 +29,7 @@
2929
android:id="@+id/grid_view_album_select"
3030
android:layout_width="match_parent"
3131
android:layout_height="match_parent"
32-
android:layout_below="@id/toolbar"
32+
android:layout_below="@id/toolbar_image_picker"
3333
android:paddingBottom="1dp"
3434
android:paddingStart="1dp"
3535
android:paddingEnd="1dp"

awesomeimagepicker/src/main/res/layout/activity_image_select.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
android:layout_height="match_parent">
66

77
<include
8-
android:id="@+id/toolbar"
8+
android:id="@+id/toolbar_image_picker"
99
layout="@layout/custom_gallery_toolbar"
1010
android:layout_width="match_parent"
1111
android:layout_height="wrap_content" />
@@ -29,7 +29,7 @@
2929
android:id="@+id/grid_view_image_select"
3030
android:layout_width="match_parent"
3131
android:layout_height="match_parent"
32-
android:layout_below="@id/toolbar"
32+
android:layout_below="@id/toolbar_image_picker"
3333
android:paddingBottom="1dp"
3434
android:paddingStart="1dp"
3535
android:paddingEnd="1dp"

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.2.3'
8+
classpath 'com.android.tools.build:gradle:2.3.2'
99
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
1010
// NOTE: Do not place your application dependencies here; they belong
1111
// in the individual module build.gradle files

0 commit comments

Comments
 (0)