diff options
author | Arne Schwabe <arne@rfc2549.org> | 2020-05-06 17:42:12 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2020-05-06 17:42:24 +0200 |
commit | 72ae846ea9ce4c50441bdc347d86a39231176f3e (patch) | |
tree | 2bfd6966f6202bdbd6848ab46da0015d1daddd33 /main/src/ui/java/de/blinkt/openvpn/activities | |
parent | 6dd6c760fed01f7bf2648362f1f893dc75dcf42d (diff) |
Convert ListView in allowed apps to RecyclerView
Closes #693
Diffstat (limited to 'main/src/ui/java/de/blinkt/openvpn/activities')
-rw-r--r-- | main/src/ui/java/de/blinkt/openvpn/activities/BaseActivity.java | 2 | ||||
-rw-r--r-- | main/src/ui/java/de/blinkt/openvpn/activities/VPNPreferences.java | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/main/src/ui/java/de/blinkt/openvpn/activities/BaseActivity.java b/main/src/ui/java/de/blinkt/openvpn/activities/BaseActivity.java index 68dd137e..0e143042 100644 --- a/main/src/ui/java/de/blinkt/openvpn/activities/BaseActivity.java +++ b/main/src/ui/java/de/blinkt/openvpn/activities/BaseActivity.java @@ -13,7 +13,7 @@ import android.view.Window; import androidx.appcompat.app.AppCompatActivity; public abstract class BaseActivity extends AppCompatActivity { - private boolean isAndroidTV() { + boolean isAndroidTV() { final UiModeManager uiModeManager = (UiModeManager) getSystemService(UI_MODE_SERVICE); if (uiModeManager == null) return false; diff --git a/main/src/ui/java/de/blinkt/openvpn/activities/VPNPreferences.java b/main/src/ui/java/de/blinkt/openvpn/activities/VPNPreferences.java index 2b6c94ad..49d4161c 100644 --- a/main/src/ui/java/de/blinkt/openvpn/activities/VPNPreferences.java +++ b/main/src/ui/java/de/blinkt/openvpn/activities/VPNPreferences.java @@ -39,7 +39,7 @@ public class VPNPreferences extends BaseActivity { static final Class[] validFragments = new Class[]{ Settings_Authentication.class, Settings_Basic.class, Settings_IP.class, Settings_Obscure.class, Settings_Routing.class, ShowConfigFragment.class, - Settings_Connections.class, Settings_Allowed_Apps.class + Settings_Connections.class, Settings_Allowed_Apps.class, }; private String mProfileUUID; @@ -147,9 +147,9 @@ public class VPNPreferences extends BaseActivity { } else { mPagerAdapter.addTab(R.string.basic, Settings_UserEditable.class); } - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { mPagerAdapter.addTab(R.string.vpn_allowed_apps, Settings_Allowed_Apps.class); - + } mPagerAdapter.addTab(R.string.generated_config, ShowConfigFragment.class); |