Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/rel/0.5' into rel/0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
hajoha committed Jan 13, 2025
2 parents 2bb8abf + b7930ee commit 893fdd6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import androidx.appcompat.widget.Toolbar;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import androidx.core.view.WindowCompat;
import androidx.navigation.NavController;
import androidx.navigation.fragment.NavHostFragment;
import androidx.preference.Preference;
Expand Down Expand Up @@ -117,6 +118,7 @@ protected void onCreate(Bundle savedInstanceState) {
gv.setFeature_telephony(feature_telephony);

// initialize android UX related thing the app needs
WindowCompat.setDecorFitsSystemWindows(this.getWindow(), false);
setContentView(R.layout.activity_main);
Toolbar toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:keepScreenOn="true"
app:layout_insetEdge="none"
tools:context=".MainActivity">

<LinearLayout
Expand All @@ -27,6 +28,7 @@
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="26dp"
android:layout_marginLeft="16dp"
android:visibility="visible"
app:navigationIcon="@drawable/openmnt_logo_titel_right"
app:title=" "
Expand Down
8 changes: 5 additions & 3 deletions app/src/main/res/layout/fragment_home.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,21 @@
-->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<com.google.android.material.tabs.TabLayout
android:id="@+id/home_tab_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
app:tabMode="auto" />

<androidx.viewpager2.widget.ViewPager2
android:id="@+id/home_pager"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_height="wrap_content"
android:layout_weight="1" />

</LinearLayout>
3 changes: 1 addition & 2 deletions app/src/main/res/values-night/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/teal_200</item>
<item name="colorSecondaryVariant">@color/teal_200</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<!-- Customize your theme here. -->
</style>
</resources>

0 comments on commit 893fdd6

Please sign in to comment.