1
0
mirror of https://framagit.org/tom79/fedilab-tube synced 2025-06-05 21:09:11 +02:00

Improve tablet 2

This commit is contained in:
Thomas
2020-07-09 18:08:43 +02:00
parent ceef08db6c
commit f76b722268
4 changed files with 18 additions and 2 deletions

View File

@ -174,6 +174,15 @@ public class PeertubeActivity extends AppCompatActivity implements OnRetrievePee
peertube_playlist.setVisibility(View.VISIBLE);
peertube_bookmark.setVisibility(View.GONE);
if( Helper.isTablet(PeertubeActivity.this)) {
RelativeLayout video_container = findViewById(R.id.video_container);
LinearLayout.LayoutParams param = new LinearLayout.LayoutParams(
LinearLayout.LayoutParams.MATCH_PARENT,
0,
2.0f
);
video_container.setLayoutParams(param);
}
SQLiteDatabase db = Sqlite.getInstance(getApplicationContext(), Sqlite.DB_NAME, null, Sqlite.DB_VERSION).open();
String userId = sharedpreferences.getString(Helper.PREF_KEY_ID, null);