version 1.1.5
fixed problem with importing settings revised settings-layout for tablets
This commit is contained in:
parent
39c464f1c8
commit
2d3c19f88b
@ -9,8 +9,8 @@ android {
|
||||
applicationId "de.jg_cody.Teraplex"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 30
|
||||
versionCode 2
|
||||
versionName "1.1.2"
|
||||
versionCode 4
|
||||
versionName "1.1.4"
|
||||
multiDexEnabled true
|
||||
|
||||
archivesBaseName = "Teraplex"
|
||||
|
@ -365,18 +365,18 @@ public class SettingsFragment extends Fragment {
|
||||
// the system file picker when your app creates the document.
|
||||
//intent.putExtra(DocumentsContract.EXTRA_INITIAL_URI, pickerInitialUri);
|
||||
|
||||
getActivity().startActivityForResult(intent, 1);
|
||||
requireActivity().startActivityForResult(intent, 1);
|
||||
}
|
||||
private void openFile() {
|
||||
Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
|
||||
intent.addCategory(Intent.CATEGORY_OPENABLE);
|
||||
intent.setType("application/json");
|
||||
intent.setType("application/*");
|
||||
|
||||
// Optionally, specify a URI for the file that should appear in the
|
||||
// system file picker when it loads.
|
||||
|
||||
|
||||
getActivity().startActivityForResult(intent, MainActivity.PICK_PDF_FILE);
|
||||
requireActivity().startActivityForResult(intent, MainActivity.PICK_PDF_FILE);
|
||||
}
|
||||
|
||||
|
||||
|
@ -107,14 +107,13 @@
|
||||
android:id="@+id/import_export"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="35dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="center_horizontal|left"
|
||||
android:text="@string/import_export"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/mtrl_btn_text_color_selector"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintEnd_toEndOf="@+id/divider4"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/divider4" />
|
||||
|
||||
@ -218,11 +217,13 @@
|
||||
android:id="@+id/button_export"
|
||||
android:layout_width="140dp"
|
||||
android:layout_height="55dp"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:background="@drawable/button_round"
|
||||
android:text="@string/button_export"
|
||||
app:backgroundTint="@null"
|
||||
app:layout_constraintEnd_toEndOf="@+id/button_theme_yellow_blue"
|
||||
app:layout_constraintStart_toEndOf="@+id/button_import"
|
||||
app:layout_constraintTop_toBottomOf="@+id/import_export" />
|
||||
|
||||
<Button
|
||||
@ -253,12 +254,13 @@
|
||||
android:id="@+id/button_theme_orange_turquoise"
|
||||
android:layout_width="140dp"
|
||||
android:layout_height="55dp"
|
||||
android:layout_marginStart="35dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:background="@drawable/button_theme_orange_turquoise"
|
||||
android:text="@string/orange_turquoise"
|
||||
app:backgroundTint="@null"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@+id/button_theme_green_yellow"
|
||||
app:layout_constraintStart_toStartOf="@+id/button_theme_red_blue"
|
||||
app:layout_constraintTop_toBottomOf="@+id/button_theme_red_blue" />
|
||||
|
||||
<Button
|
||||
@ -286,12 +288,13 @@
|
||||
android:id="@+id/button_theme_green_yellow"
|
||||
android:layout_width="140dp"
|
||||
android:layout_height="55dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="35dp"
|
||||
android:background="@drawable/button_theme_green_yellow"
|
||||
android:text="@string/green_yellow"
|
||||
app:backgroundTint="@null"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="@+id/button_theme_red_blue"
|
||||
app:layout_constraintStart_toEndOf="@+id/button_theme_orange_turquoise"
|
||||
app:layout_constraintTop_toBottomOf="@+id/button_theme_red_blue" />
|
||||
|
||||
<Button
|
||||
|
BIN
app/src/main/res/raw/intro.mp4
Normal file
BIN
app/src/main/res/raw/intro.mp4
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user