1. orientation fix

This commit is contained in:
vadym 2020-06-27 13:24:47 -07:00
parent 317e040e1b
commit a8eaa5fc9d
2 changed files with 10 additions and 8 deletions

View File

@ -17,11 +17,13 @@
<activity <activity
android:name=".PeerListActivity" android:name=".PeerListActivity"
android:label="@string/title_activity_peer_list" android:label="@string/title_activity_peer_list"
android:theme="@style/AppTheme.NoActionBar" /> android:theme="@style/AppTheme.NoActionBar"
android:screenOrientation="portrait"/>
<activity <activity
android:name=".DNSListActivity" android:name=".DNSListActivity"
android:label="@string/title_activity_dns_list" android:label="@string/title_activity_dns_list"
android:theme="@style/AppTheme.NoActionBar" /> android:theme="@style/AppTheme.NoActionBar"
android:screenOrientation="portrait"/>
<service <service
android:name=".YggdrasilTunService" android:name=".YggdrasilTunService"
android:enabled="true" android:enabled="true"
@ -33,7 +35,8 @@
</service> </service>
<activity android:name=".MainActivity" <activity android:name=".MainActivity"
android:launchMode= "singleInstance"> android:launchMode= "singleInstance"
android:screenOrientation="portrait">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />

View File

@ -17,7 +17,8 @@
android:paddingLeft="20dp" android:paddingLeft="20dp"
android:orientation="vertical" android:orientation="vertical"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
android:animateLayoutChanges="true"> android:animateLayoutChanges="true"
android:visibility="gone">
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -33,8 +34,8 @@
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
android:textColor="@color/dark_30" /> android:textColor="@color/dark_30"
/>
<Button <Button
android:id="@+id/copyIp" android:id="@+id/copyIp"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -42,7 +43,6 @@
android:text="COPY" android:text="COPY"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
android:background="@android:color/transparent"/> android:background="@android:color/transparent"/>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
<TextView <TextView
@ -58,7 +58,6 @@
app:layout_constraintEnd_toStartOf="@+id/copyIp" app:layout_constraintEnd_toStartOf="@+id/copyIp"
android:text="" android:text=""
android:textColor="@color/white"/> android:textColor="@color/white"/>
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout