Skip to content

Commit

Permalink
Prevent automatic screen rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
baktragh committed Aug 31, 2020
1 parent 3581c13 commit 709051e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
12 changes: 6 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 8,10 @@ android {
minSdkVersion 14
//noinspection OldTargetApi
targetSdkVersion 26
versionName '1.0.1'
versionName '1.0.2'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
signingConfig signingConfigs.debug
versionCode = 11
versionCode = 12
}
buildTypes {
release {
Expand All @@ -31,10 31,10 @@ android {

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
implementation 'com.obsez.android.lib.filechooser:filechooser:1.1.19'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}
14 changes: 9 additions & 5 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 9,17 @@
<uses-permission android:name="android.permission.WAKE_LOCK" />

<application
tools:replace="android:allowBackup"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
android:theme="@style/AppTheme"
tools:replace="android:allowBackup">

<activity
android:name=".MainActivity"
android:screenOrientation="nosensor">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand All @@ -26,7 28,9 @@
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.DEFAULT" />

<category android:name="android.intent.category.DEFAULT" />

<data android:scheme="content" />
<data android:host="*" />
<data android:mimeType="*/*" />
Expand All @@ -36,7 40,9 @@
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.DEFAULT" />

<category android:name="android.intent.category.DEFAULT" />

<data android:scheme="file" />
<data android:host="*" />
<data android:mimeType="*/*" />
Expand All @@ -46,9 52,7 @@
</activity>



</application>



</manifest>
3 changes: 2 additions & 1 deletion app/src/main/java/com/baktra/cas2audio/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 96,7 @@ protected final void onResume() {
}
/*There was some intent, but no valid path selected.*/
else {
setCurrentFileName("CAS2Audio 1.0.1");
setCurrentFileName("CAS2Audio 1.0.2");
msgText.setText(R.string.msg_notape);
setPlayBackViewsEnabled(false);
currentUri=null;
Expand Down Expand Up @@ -186,6 186,7 @@ public final void onBrowseTapeImage(android.view.View view) {
/*Create basic chooser dialog*/
ChooserDialog cDlg = new ChooserDialog(MainActivity.this)
.withFilter(false, false, "cas", "CAS")
.displayPath(true)
.withResources(R.string.tit_choose_image, R.string.btn_choose, R.string.btn_cancel)
.withChosenListener(new ChooserDialog.Result() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 168,7 @@ final void resetAngle() {
}

/**
* Precalculate lookup table
* Pre-calculate lookup table
*/
private void createSineTable() {

Expand Down

0 comments on commit 709051e

Please sign in to comment.