Harsh Shandilya and Samuel Holland
e4eac7a3cf
drawables: Introduce material iconography
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-05-05 10:11:14 -05:00
Harsh Shandilya and Samuel Holland
55ec3046d1
styles: Propagate WireGuard blue in UI
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-05-05 10:08:49 -05:00
Harsh Shandilya and Samuel Holland
6bd4f7495d
styles: Propagate WireGuard red in UI
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-05-05 10:08:24 -05:00
Harsh Shandilya and Samuel Holland
fd571c53ce
TunnelEditor: Add toast messages to success events
...
Letting the user know that the operation went successfully
via visual cues is a nice UX touch.
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-05-05 10:08:14 -05:00
Harsh Shandilya and Samuel Holland
37413f2fb4
TunnelEditor: Remove unused parameter
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-05-03 23:49:14 -05:00
Harsh Shandilya and Samuel Holland
59aa3035a8
ui: Use a proper CardView based layout
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-05-03 23:45:03 -05:00
Harsh Shandilya and Jason A. Donenfeld
24572aa861
global: Some more lint cleanup
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-05-02 17:14:35 +02:00
Harsh Shandilya and Jason A. Donenfeld
a77ff1627d
wg-build: Update gradle build files
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-05-02 03:40:02 +02:00
Harsh Shandilya and Jason A. Donenfeld
96ebf4cd51
libwg-go: Ignore go{path,root}
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-05-02 03:40:02 +02:00
Harsh Shandilya
f9d68185e2
wg: Collapse fab when pressing back before exiting
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-04-30 17:33:24 +05:30
Harsh Shandilya
f1fa46829d
SettingsActivity: Migrate permissions check to AppCompat
...
Pretty straightforward, I was clearly overthinking this.
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-04-30 17:30:25 +05:30
Harsh Shandilya
a6e530049c
ZipExporterPreference: Correctly get preference activity
...
In AppCompat based preferences, this#getContext returns an
object of android.view.ContextThemeWrapper class from where
we can safely extract a reference to our parent activity.
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-04-30 17:30:25 +05:30
Harsh Shandilya
77c0d4dfa6
TunnelListFragment: Use Collections methods in place of Arrays
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-04-30 17:30:25 +05:30
Harsh Shandilya
7e415a62c7
wg: Break out crossport dependency
...
Replace all crossport uses with upstream design
support library components.
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-04-30 17:30:25 +05:30
Harsh Shandilya
431b75be15
wg-build: Upgrade databinding library to 3.1.2
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-04-30 17:30:24 +05:30
Harsh Shandilya
fe4cc22ca0
SettingsActivity: Gracefully exit when options menu home is pressed
...
This is an activity, so it does not join the fragment backstack, but
instead piles on top
SettingsActivity
| -> MainActivity
| -> EditorFragment
| -> DetailFragment
| -> ListFragment
Without overriding the back button in the toolbar, it simply
kills the entire state on MainActivity and causes it to reload.
By calling finish() on the activity when home is pressed from the
item menu we can silently make it die without affecting any underlying
states held by MainActivity and instead return to the exact fragment
we launched settings from.
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-04-30 17:30:24 +05:30
Harsh Shandilya
4fc1e61a83
SettingsActivity: Define preferenceTheme for AppCompat
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-04-30 17:30:24 +05:30
Harsh Shandilya
e7e571a301
wg: Migrate menu visibility to AppCompat
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-04-30 17:30:24 +05:30
Harsh Shandilya
425d194e4f
wg: Add and use dummy AppTheme
...
Preparation for when the app will start carrying
colors reflecting the WireGuard brand.
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-04-30 17:30:24 +05:30
Harsh Shandilya
4ec0b3a908
Prefer AppCompat classes
...
AppCompat is the preferred way to go for any app targetting
a wider range of SDKs.
Replace all activities and fragments with their AppCompat
variants and fixup method calls to use support variants.
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-04-30 17:30:24 +05:30
Harsh Shandilya
af57824c14
wireguard: Extract dependency versions to ext struct
...
Maintain common versions in a single place
Also upgraded the support library to 27.1.1 and
databinding library to 3.1.1.
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-04-30 17:30:24 +05:30
Harsh Shandilya and Jason A. Donenfeld
217ab5e17f
config: Minor cleanup
...
- Stop implicitly assuming locales in String.format
- Cleanup method visibilities
- Improve uses of Integer methods
- Remove unused getToken method
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-04-28 06:07:48 +02:00
Harsh Shandilya and Jason A. Donenfeld
ba862b166b
Quick cleanup across the board
...
- Clean up imports
- Adjust method visibility
- Drop in NonNull annotations where needed
- Prevent potential NPEs from nulled getActivity calls
- Remove unused methods
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-04-28 06:07:48 +02:00