database bug fix, profile menu fix, gradle update

Signed-off-by: nuclearfog <hatespirit666@gmail.com>
This commit is contained in:
nuclearfog 2021-07-05 14:31:35 +02:00
parent 29855dda83
commit 9127e2150b
No known key found for this signature in database
GPG Key ID: AA0271FBE406DB98
5 changed files with 12 additions and 8 deletions

View File

@ -10,8 +10,8 @@ android {
applicationId 'org.nuclearfog.twidda'
minSdkVersion 16
targetSdkVersion 30
versionCode 43
versionName '1.9.1'
versionCode 44
versionName '1.9.2'
// limiting language support for smaller APK size
resConfigs 'en', 'de-rDE', 'zh-rCN'
vectorDrawables.useSupportLibrary true
@ -53,7 +53,8 @@ dependencies {
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'org.twitter4j:twitter4j-core:4.0.7'
implementation 'com.squareup.picasso:picasso:2.71828'
//noinspection GradleDependency
implementation 'com.squareup.picasso:picasso:2.8'
implementation 'com.github.open-android:Picasso-transformations:0.1.0'
implementation 'com.github.QuadFlask:colorpicker:0.0.15'
implementation 'com.github.nuclearfog:ZoomView:1.0.2'

View File

@ -287,9 +287,9 @@ public class UserProfile extends AppCompatActivity implements OnClickListener, O
AppStyles.setMenuItemColor(followIcon, settings.getFollowPendingColor());
followIcon.setTitle(R.string.menu_follow_requested);
}
if (user.isLocked() && !user.isCurrentUser()) {
if (user.isCurrentUser() || !user.isLocked()) {
MenuItem listItem = m.findItem(R.id.profile_lists);
listItem.setVisible(false);
listItem.setVisible(true);
}
if (user.isCurrentUser()) {
MenuItem dmIcon = m.findItem(R.id.profile_message);

View File

@ -259,18 +259,20 @@ public class DatabaseAdapter {
* initialize tables if there aren't any
*/
private void initTables() {
// create tables
db.execSQL(TABLE_USER);
db.execSQL(TABLE_TWEET);
db.execSQL(TABLE_FAVORS);
db.execSQL(TABLE_TRENDS);
db.execSQL(TABLE_MESSAGES);
db.execSQL(TABLE_LOGINS);
db.execSQL(TABLE_TWEET_REGISTER);
db.execSQL(TABLE_USER_REGISTER);
// create index
db.execSQL(INDX_TWEET);
db.execSQL(INDX_TREND);
db.execSQL(INDX_TWEET_REG);
db.execSQL(INDX_USER_REG);
db.execSQL(TABLE_TWEET_REGISTER);
db.execSQL(TABLE_USER_REGISTER);
/// Database just created? set current version
if (db.getVersion() == 0) {
db.setVersion(DB_VERSION);

View File

@ -29,6 +29,7 @@
app:showAsAction="ifRoom" />
<item
android:id="@+id/profile_lists"
android:visible="false"
android:title="@string/menu_goto_lists" />
<item
android:id="@+id/profile_settings"

View File

@ -8,7 +8,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath 'com.android.tools.build:gradle:4.2.2'
classpath 'io.michaelrocks:paranoid-gradle-plugin:0.3.3'
classpath 'gradle.plugin.ru.cleverpumpkin.proguard-dictionaries-generator:plugin:1.0.8'
}