BaseActivity: style
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
f190db0754
commit
2ca27c2783
@ -56,11 +56,10 @@ public abstract class BaseActivity extends ThemeChangeAwareActivity {
|
|||||||
|
|
||||||
if (Application.getBackendType() == GoBackend.class) {
|
if (Application.getBackendType() == GoBackend.class) {
|
||||||
final Intent intent = GoBackend.VpnService.prepare(this);
|
final Intent intent = GoBackend.VpnService.prepare(this);
|
||||||
if (intent != null) {
|
if (intent != null)
|
||||||
startActivityForResult(intent, 0);
|
startActivityForResult(intent, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onSaveInstanceState(final Bundle outState) {
|
protected void onSaveInstanceState(final Bundle outState) {
|
||||||
|
@ -269,10 +269,9 @@ public class TunnelListFragment extends BaseFragment {
|
|||||||
tunnels.size() + throwables.size(),
|
tunnels.size() + throwables.size(),
|
||||||
tunnels.size(), tunnels.size() + throwables.size());
|
tunnels.size(), tunnels.size() + throwables.size());
|
||||||
|
|
||||||
if (binding != null) {
|
if (binding != null)
|
||||||
Snackbar.make(binding.mainContainer, message, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(binding.mainContainer, message, Snackbar.LENGTH_LONG).show();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onViewStateRestored(final Bundle savedInstanceState) {
|
public void onViewStateRestored(final Bundle savedInstanceState) {
|
||||||
|
Loading…
Reference in New Issue
Block a user