Skip to content

Commit dada670

Browse files
committed
update 90; few UI improvements in whatsnew dialog
1 parent 7c19b57 commit dada670

File tree

6 files changed

+49
-18
lines changed

6 files changed

+49
-18
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ android {
1010
minSdkVersion 21
1111
multiDexEnabled true
1212
targetSdkVersion 28
13-
versionCode 88
14-
versionName "8.6.1"
13+
versionCode 90
14+
versionName "8.6.3"
1515
}
1616
buildTypes {
1717
release {

app/src/main/assets/whatsnew.json

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,28 @@
22
"data": [
33

44
{
5-
"title": "Invert PDF",
6-
"content": "New feature to invert PDF colors",
7-
"icon": "ic_invert_color_24dp"
5+
"title": "Favourites Section",
6+
"content": "You can now add your favourite features & get easy access to those.",
7+
"icon": "ic_call_split_black_24dp"
88
},
99

1010
{
11-
"title": "Split PDF",
12-
"content": "Added More ways to split PDF",
13-
"icon": "ic_call_split_black_24dp"
11+
"title": "View History",
12+
"content": "Enhanced filters to view your history conversions",
13+
"icon": "ic_history_black_24dp"
14+
},
15+
16+
17+
{
18+
"title": "Excel to PDF",
19+
"content": "You can now convert your excel files to PDF too!",
20+
"icon": "ic_excel"
1421
},
1522

1623
{
17-
"title": "Fixed Crashes",
18-
"content": "Fixed crashes & PDF conversion performance",
19-
"icon": ""
24+
"title": "Zip to PDF",
25+
"content": "You can now convert your images zip files to PDF too!",
26+
"icon": "ic_broken_image_black_24dp"
2027
}
2128

2229
],
@@ -25,6 +32,28 @@
2532
"version_code": [
2633
],
2734

35+
"84": [
36+
37+
{
38+
"title": "Invert PDF",
39+
"content": "New feature to invert PDF colors",
40+
"icon": "ic_invert_color_24dp"
41+
},
42+
43+
{
44+
"title": "Split PDF",
45+
"content": "Added More ways to split PDF",
46+
"icon": "ic_call_split_black_24dp"
47+
},
48+
49+
{
50+
"title": "Fixed Crashes",
51+
"content": "Fixed crashes & PDF conversion performance",
52+
"icon": ""
53+
}
54+
55+
],
56+
2857
"83" : [
2958
{
3059
"title": "Remove duplicate pages",

app/src/main/java/swati4star/createpdf/activity/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ protected void onCreate(Bundle savedInstanceState) {
129129
}
130130

131131
String versionName = mSharedPreferences.getString(VERSION_NAME, "");
132-
if (!versionName.equals(BuildConfig.VERSION_NAME)) {
132+
if (versionName != null && !versionName.equals(BuildConfig.VERSION_NAME)) {
133133
WhatsNewUtils.displayDialog(this);
134134
mSharedPreferences.edit().putString(VERSION_NAME, BuildConfig.VERSION_NAME).apply();
135135
}

app/src/main/java/swati4star/createpdf/adapter/ExtractImagesAdapter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ public class ViewMergeFilesHolder extends RecyclerView.ViewHolder implements Vie
6767

6868
@Override
6969
public void onClick(View view) {
70-
mOnClickListener.onFileItemClick(mFilePaths.get(getAdapterPosition()));
70+
if (getAdapterPosition() < mFilePaths.size())
71+
mOnClickListener.onFileItemClick(mFilePaths.get(getAdapterPosition()));
7172
}
7273
}
7374

app/src/main/res/layout/fragment_whats_new.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<LinearLayout
1616
android:layout_width="match_parent"
1717
android:layout_height="wrap_content"
18+
android:padding="10dp"
1819
android:layout_marginBottom="50dp">
1920

2021
<android.support.v7.widget.RecyclerView
@@ -24,7 +25,6 @@
2425

2526
</LinearLayout>
2627

27-
2828
<Button
2929
android:id="@+id/continueButton"
3030
android:layout_width="match_parent"

app/src/main/res/layout/item_whats_new.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
<LinearLayout
99
android:layout_width="match_parent"
1010
android:layout_height="wrap_content"
11-
android:layout_marginLeft="15dp"
11+
android:layout_marginStart="8dp"
1212
android:layout_marginTop="10dp"
1313
android:orientation="horizontal">
1414

1515
<ImageView
1616
android:id="@+id/icon"
17-
android:layout_width="25dp"
18-
android:layout_height="25dp"
17+
android:layout_width="20dp"
18+
android:layout_height="20dp"
1919
android:backgroundTint="@color/black" />
2020

2121
<TextView
@@ -31,7 +31,8 @@
3131
android:id="@+id/description"
3232
android:layout_width="match_parent"
3333
android:layout_height="wrap_content"
34-
android:layout_marginLeft="15dp"
34+
android:layout_marginStart="15dp"
35+
android:layout_marginEnd="15dp"
3536
android:layout_marginTop="5dp" />
3637

3738
</LinearLayout>

0 commit comments

Comments
 (0)