Skip to content

Commit e999eda

Browse files
Merge pull request #16172 from nextcloud/backport/16167/stable-3.35
[stable-3.35] show search button
2 parents 4c16f70 + 98b3371 commit e999eda

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
import android.accounts.AccountManager;
1313
import android.annotation.SuppressLint;
1414
import android.app.Activity;
15-
import android.content.ComponentCallbacks;
1615
import android.content.res.ColorStateList;
17-
import android.content.res.Configuration;
1816
import android.content.res.Resources;
1917
import android.graphics.Color;
2018
import android.graphics.drawable.Drawable;
@@ -189,17 +187,6 @@ public OCFileListAdapter(
189187
// initialise thumbnails cache on background thread
190188
ThumbnailsCacheManager.initDiskCacheAsync();
191189
isRTL = DisplayUtils.isRTL();
192-
193-
activity.registerComponentCallbacks(new ComponentCallbacks() {
194-
@SuppressLint("NotifyDataSetChanged")
195-
@Override
196-
public void onConfigurationChanged(@NonNull Configuration newConfig) {
197-
notifyDataSetChanged(); // force update of orientation-dependent layout (e.g. share button visibility)
198-
}
199-
@Override
200-
public void onLowMemory() {
201-
}
202-
});
203190
}
204191

205192
public boolean isMultiSelect() {

app/src/main/java/com/owncloud/android/ui/adapter/OCFileListDelegate.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
package com.owncloud.android.ui.adapter
99

1010
import android.content.Context
11-
import android.content.res.Configuration
1211
import android.view.View
1312
import android.widget.ImageView
1413
import androidx.core.content.ContextCompat
@@ -218,7 +217,6 @@ class OCFileListDelegate(
218217
// shares
219218
val shouldHideShare = (
220219
hideItemOptions ||
221-
context.resources.configuration.orientation == Configuration.ORIENTATION_PORTRAIT ||
222220
!file.isFolder &&
223221
file.isEncrypted ||
224222
file.isEncrypted &&

0 commit comments

Comments
 (0)