From cbdaa48705855169827f29014efbaa934d212ccf Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Tue, 12 Nov 2019 22:58:14 +0100 Subject: Convert most fragments/activities to androidx --- main/src/main/res/layout/import_as_config.xml | 62 + main/src/main/res/values-night-v21/styles.xml | 27 - main/src/main/res/values-v21/styles.xml | 31 - main/src/main/res/values/strings.xml | 2 + main/src/main/res/values/styles.xml | 44 +- .../support/v4n/app/FragmentStatePagerAdapter.java | 232 -- .../android/support/v4n/view/PagerAdapter.java | 320 --- .../java/android/support/v4n/view/ViewPager.java | 2896 -------------------- .../de/blinkt/openvpn/activities/BaseActivity.java | 15 +- .../blinkt/openvpn/activities/ConfigConverter.kt | 8 +- .../de/blinkt/openvpn/activities/LogWindow.java | 2 +- .../de/blinkt/openvpn/activities/MainActivity.java | 28 +- .../blinkt/openvpn/activities/VPNPreferences.java | 56 +- .../de/blinkt/openvpn/fragments/AboutFragment.java | 7 +- .../de/blinkt/openvpn/fragments/FaqFragment.java | 5 +- .../blinkt/openvpn/fragments/GeneralSettings.java | 208 +- .../de/blinkt/openvpn/fragments/GraphFragment.java | 13 +- .../openvpn/fragments/KeyChainSettingsFragment.kt | 20 +- .../de/blinkt/openvpn/fragments/LogFragment.java | 39 +- .../fragments/OpenVpnPreferencesFragment.java | 6 +- .../blinkt/openvpn/fragments/SendDumpFragment.java | 184 +- .../openvpn/fragments/Settings_Allowed_Apps.kt | 24 +- .../openvpn/fragments/Settings_Authentication.java | 300 +- .../openvpn/fragments/Settings_Fragment.java | 3 +- .../de/blinkt/openvpn/fragments/Settings_IP.java | 40 +- .../blinkt/openvpn/fragments/Settings_Obscure.java | 18 +- .../blinkt/openvpn/fragments/Settings_Routing.java | 34 +- .../openvpn/fragments/ShowConfigFragment.java | 24 +- .../blinkt/openvpn/fragments/VPNProfileList.java | 12 +- .../openvpn/views/DefaultVPNListPreference.java | 4 +- .../blinkt/openvpn/views/PagerSlidingTabStrip.java | 732 ----- .../blinkt/openvpn/views/RemoteCNPreference.java | 172 +- .../openvpn/views/RemoteCNPreferenceDialog.java | 124 + .../openvpn/views/ScreenSlidePagerAdapter.java | 11 +- .../de/blinkt/openvpn/views/SlidingTabLayout.java | 314 --- .../de/blinkt/openvpn/views/SlidingTabStrip.java | 207 -- .../java/de/blinkt/openvpn/views/TabBarView.java | 16 - main/src/ui/res/layout-v21/tabs.xml | 3 +- main/src/ui/res/layout/main_activity.xml | 17 +- main/src/ui/res/layout/padersliding_tab.xml | 13 - main/src/ui/res/layout/sliding_tab.xml | 13 + main/src/ui/res/layout/tabs.xml | 12 - main/src/ui/res/layout/tlsremote.xml | 10 +- main/src/ui/res/values-v21/colours.xml | 9 - 44 files changed, 825 insertions(+), 5492 deletions(-) create mode 100644 main/src/main/res/layout/import_as_config.xml delete mode 100644 main/src/main/res/values-night-v21/styles.xml delete mode 100644 main/src/main/res/values-v21/styles.xml delete mode 100644 main/src/ui/java/android/support/v4n/app/FragmentStatePagerAdapter.java delete mode 100644 main/src/ui/java/android/support/v4n/view/PagerAdapter.java delete mode 100644 main/src/ui/java/android/support/v4n/view/ViewPager.java delete mode 100644 main/src/ui/java/de/blinkt/openvpn/views/PagerSlidingTabStrip.java create mode 100644 main/src/ui/java/de/blinkt/openvpn/views/RemoteCNPreferenceDialog.java delete mode 100644 main/src/ui/java/de/blinkt/openvpn/views/SlidingTabLayout.java delete mode 100644 main/src/ui/java/de/blinkt/openvpn/views/SlidingTabStrip.java delete mode 100644 main/src/ui/java/de/blinkt/openvpn/views/TabBarView.java delete mode 100644 main/src/ui/res/layout/padersliding_tab.xml create mode 100644 main/src/ui/res/layout/sliding_tab.xml delete mode 100644 main/src/ui/res/layout/tabs.xml delete mode 100644 main/src/ui/res/values-v21/colours.xml (limited to 'main/src') diff --git a/main/src/main/res/layout/import_as_config.xml b/main/src/main/res/layout/import_as_config.xml new file mode 100644 index 00000000..27ef3de3 --- /dev/null +++ b/main/src/main/res/layout/import_as_config.xml @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + +