Fixes a crash due to locale + prepares release 1.3.3

This commit is contained in:
tom79 2017-07-17 19:18:21 +02:00
parent 7bbb2d10ee
commit 03cda80bed
4 changed files with 3 additions and 4 deletions

View File

@ -7,8 +7,8 @@ android {
applicationId "fr.gouv.etalab.mastodon"
minSdkVersion 15
targetSdkVersion 25
versionCode 29
versionName "1.3.2"
versionCode 30
versionName "1.3.3"
}
buildTypes {
release {

Binary file not shown.

View File

@ -286,7 +286,6 @@ public class ScheduledTootsListAdapter extends BaseAdapter {
}
}
});
alertDialog.show();
}
});

View File

@ -197,7 +197,7 @@ public class StatusListAdapter extends BaseAdapter implements OnPostActionInterf
statusListAdapter.notifyDataSetChanged();
}
});
if( currentLocale != null && !status.getLanguage().trim().equals(currentLocale) && !status.getLanguage().trim().equals("null")){
if( currentLocale != null && status.getLanguage() != null && !status.getLanguage().trim().equals(currentLocale) && !status.getLanguage().trim().equals("null")){
holder.status_translate.setVisibility(View.VISIBLE);
}else {
holder.status_translate.setVisibility(View.GONE);