Don't try to save profile ID if there is none
This commit is contained in:
@@ -104,7 +104,10 @@ public class VpnProfileDetailActivity extends Activity
|
|||||||
protected void onSaveInstanceState(Bundle outState)
|
protected void onSaveInstanceState(Bundle outState)
|
||||||
{
|
{
|
||||||
super.onSaveInstanceState(outState);
|
super.onSaveInstanceState(outState);
|
||||||
outState.putLong(VpnProfileDataSource.KEY_ID, mId);
|
if (mId != null)
|
||||||
|
{
|
||||||
|
outState.putLong(VpnProfileDataSource.KEY_ID, mId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user