BaseActivity: style

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2018-06-07 04:48:11 +02:00
parent f190db0754
commit 2ca27c2783
2 changed files with 2 additions and 4 deletions

View File

@ -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) {

View File

@ -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) {