Skip to content

Commit

Permalink
Fixed useless uiMode recreations
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Jul 19, 2019
1 parent 1912037 commit 518c923
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CommonUtils
14 changes: 11 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
<!-- Main activity -->
<activity
android:name=".Main.MainActivity"
android:configChanges="uiMode"
android:theme="@style/AppTheme.NoActionBar.Drawer">
<meta-data
android:name="android.app.searchable"
Expand All @@ -143,6 +144,7 @@
<!-- WebView activity -->
<activity
android:name=".WebView.WebViewActivity"
android:configChanges="uiMode"
android:theme="@style/AppTheme.NoActionBar" />

<!-- Edit profile activity -->
Expand All @@ -157,6 +159,7 @@
<activity
android:name=".InAppAria2.InAppAria2ConfActivity"
android:screenOrientation="portrait"
android:configChanges="uiMode"
android:windowSoftInputMode="stateHidden" />

<!-- DirectDownload activity -->
Expand Down Expand Up @@ -190,18 +193,23 @@
<activity
android:name=".Activities.MoreAboutDownloadActivity"
android:parentActivityName=".Main.MainActivity"
android:configChanges="uiMode"
android:theme="@style/AppTheme.NoActionBar" />

<!-- Preferences activity -->
<activity android:name=".PreferenceActivity" />
<activity
android:name=".PreferenceActivity"
android:configChanges="uiMode" />

<!-- Logs activity -->
<activity android:name="com.gianlu.commonutils.LogsActivity" />
<activity
android:name="com.gianlu.commonutils.LogsActivity"
android:configChanges="uiMode" />

<!-- Search Torrent activity -->
<activity
android:name=".Activities.SearchActivity"
android:configChanges="orientation"
android:configChanges="orientation|uiMode"
android:parentActivityName=".Main.MainActivity"
android:windowSoftInputMode="stateHidden">
<meta-data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;

import com.gianlu.aria2app.PK;
import com.gianlu.aria2app.R;
import com.gianlu.aria2app.ThisApplication;
import com.gianlu.aria2lib.Aria2Ui;
import com.gianlu.aria2lib.Interface.Aria2ConfigurationScreen;
import com.gianlu.aria2lib.Internal.Message;
import com.gianlu.commonutils.Dialogs.ActivityWithDialog;
import com.gianlu.commonutils.FileUtil;
import com.gianlu.commonutils.Logging;

import java.util.List;

public class InAppAria2ConfActivity extends AppCompatActivity implements Aria2Ui.Listener {
public class InAppAria2ConfActivity extends ActivityWithDialog implements Aria2Ui.Listener {
private static final int STORAGE_ACCESS_CODE = 3;
private Aria2ConfigurationScreen screen;
private ToggleButton toggle;
Expand Down

0 comments on commit 518c923

Please sign in to comment.