mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-09-27 09:56:08 +00:00
Fix bug in system disk chooser where orientation event prevented actual selection
This commit is contained in:
parent
ad0a8400ef
commit
2728d44f8c
@ -24,7 +24,6 @@ import androidx.annotation.Nullable;
|
|||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
|
||||||
import android.provider.OpenableColumns;
|
import android.provider.OpenableColumns;
|
||||||
import android.util.Log;
|
|
||||||
|
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
|
|
||||||
@ -117,13 +116,14 @@ public class Apple2DiskChooserActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
boolean ran = b.getBoolean("ran");
|
boolean ran = b.getBoolean("ran");
|
||||||
|
/* -- Android onCreate() can be called multiple times, for example, on an orientation change ... this codepath was aborting the disk selection process when an orientation event occurred...
|
||||||
if (ran) {
|
if (ran) {
|
||||||
Apple2Activity.logMessage(Apple2Activity.LogType.ERROR, TAG, "OOPS, already ran...");
|
Apple2Activity.logMessage(Apple2Activity.LogType.ERROR, TAG, "OOPS, already ran...");
|
||||||
finish();
|
finish();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
////Intent pickIntent = new Intent(Intent.ACTION_GET_CONTENT);
|
|
||||||
Intent pickIntent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
|
Intent pickIntent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user