Remove insets handling for now
This commit is contained in:
parent
bd7b1f2939
commit
0cf17fe37b
|
|
@ -108,14 +108,7 @@ public class BaseActivity extends AppCompatActivity {
|
|||
}
|
||||
|
||||
protected void setupWindowInsets(View rootView, View secondView) {
|
||||
rootView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);
|
||||
ViewCompat.setOnApplyWindowInsetsListener(rootView, (v, insets) -> {
|
||||
if (secondView != null) {
|
||||
secondView.setPadding(0, 0, 0, insets.getSystemWindowInsetBottom());
|
||||
}
|
||||
rootView.setPadding(insets.getSystemWindowInsetLeft(), insets.getSystemWindowInsetTop(), insets.getSystemWindowInsetRight(), secondView == null ? insets.getSystemWindowInsetBottom() : 0);
|
||||
return insets;
|
||||
});
|
||||
// TODO:
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ import android.view.View;
|
|||
import android.view.ViewGroup;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.fragment.app.Fragment;
|
||||
|
||||
import org.meowcat.edxposed.manager.R;
|
||||
|
|
@ -37,12 +36,6 @@ public class DownloadDetailsFragment extends Fragment {
|
|||
return null;
|
||||
}
|
||||
DownloadDetailsBinding binding = DownloadDetailsBinding.inflate(inflater, container, false);
|
||||
ViewCompat.setOnApplyWindowInsetsListener(binding.getRoot(), (v, insets) -> {
|
||||
if (insets.getTappableElementInsets().bottom != insets.getSystemWindowInsetBottom()) {
|
||||
binding.getRoot().setPadding(0, 0, 0, insets.getSystemWindowInsetBottom());
|
||||
}
|
||||
return insets;
|
||||
});
|
||||
binding.downloadTitle.setText(module.name);
|
||||
binding.downloadTitle.setTextIsSelectable(true);
|
||||
|
||||
|
|
|
|||
|
|
@ -10,13 +10,10 @@ import android.view.LayoutInflater;
|
|||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ArrayAdapter;
|
||||
import android.widget.FrameLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.fragment.app.ListFragment;
|
||||
|
||||
import org.meowcat.edxposed.manager.R;
|
||||
|
|
@ -71,23 +68,6 @@ public class DownloadDetailsVersionsFragment extends ListFragment {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
|
||||
super.onViewCreated(view, savedInstanceState);
|
||||
((FrameLayout) view).setClipChildren(false);
|
||||
((FrameLayout) view).setClipToPadding(false);
|
||||
((FrameLayout) getListView().getParent()).setClipChildren(false);
|
||||
((FrameLayout) getListView().getParent()).setClipToPadding(false);
|
||||
getListView().setClipToPadding(false);
|
||||
getListView().setClipToPadding(false);
|
||||
ViewCompat.setOnApplyWindowInsetsListener(view, (v, insets) -> {
|
||||
if (insets.getTappableElementInsets().bottom != insets.getSystemWindowInsetBottom()) {
|
||||
getListView().setPadding(0, 0, 0, insets.getSystemWindowInsetBottom());
|
||||
}
|
||||
return insets;
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroyView() {
|
||||
super.onDestroyView();
|
||||
|
|
|
|||
Loading…
Reference in New Issue