MainActivity: fail fast in NonNull method

This commit is contained in:
Peter Cai 2021-04-02 09:51:45 +08:00
parent 68b0b85993
commit a2c400de9b
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ public class MainActivity extends AppCompatActivity {
} else if (position == 1) {
return AppListFragment.newInstance(mServiceWork, true);
} else {
return null;
throw new RuntimeException("How did this happen?");
}
}